Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Speed Camera Gauge (XYGauge)

At the moment the XYGauge is a bit experimental. It is only used for Speed Camera display, as it is hard coded to access the speed camera data if it is present. Thus for it to be of any use you need a GPS receiver and a speed camera database. The original intent behind this gauge was to be able to use it for a number of different attributes, such as lateral and longitudinal acceleration. I just haven’t quite got around to doing the work on it yet.

The gauge shows a radar style view of speed cameras in the area, based on your current GPS position and your current speed. Speed may be sourced either from GPS, Speeduino VSS, or an external VSS signal fed into the system via a canbus message.

Example:

<gauge>
    <name>cameradisplay</name>
    <type>XYGauge</type>
    <x>1754</x>
    <y>4</y>
    <w>150</w>
    <h>150</h>				
    <colours>blackwhite</colours>
</gauge>

Attribute Mandatory? Value Type Description
x Yes Integer The x coordinate of the bottom left of the gauge
y Yes Integer The y coordinate of the bottom left of the gauge
w Yes Integer The width of the gauge in pixels
h Yes Integer The height of the gauge in pixels
colours Yes String Standard colour string, used to draw the radar outline.

At the moment a hard coded camera image is used for the position of each camera. You can change this image by replacing the file c:\media\speedcamsmall.bmp with a different image. You need to keep the image size relatively small; it won’t be resized to fit the defined area. This gauge will be updated in a later release to allow the image to be specified as part of the xml.