
98
98
136
7.9.1 GPS Coordinates [AL: exactly the same as 7.6.1]
GPS coordinates (CC5MPXGPSLatitude and CC5MPXGPSLongitude) can be
embedded in the image or video files that the camera generates. 2 PakBus variables
allow the logger to send the GPS coordinates to the camera, where they are
embedded in the images or video.
The GPS coordinates must be sent as floating point values. Positive latitude and
longitude represent northern and eastern hemispheres, respectively. While negative
values represent southern and western hemispheres, respectively. Values are not
saved through a power cycle, or in off-mode, but do not need to be updated every
time an image or video is sent.
7.9.1.1 Example Program – Adding GPS Coordinates to Image Banner
The following example illustrates the use of the CC5MPXGPSLatitude and
CC5MPXGPSLongitude instructions, which can be used with CR800 series,
CR1000, or CR3000 dataloggers.
Public sendGps As Boolean Public gpsLat, gpsLong As Float public sendVarResult
BeginProg
sendGps = false
gpsLat = 50.0
gpsLong = -139.0
SerialOpen (Com1,115200,4,0,2000)
Scan (1,Sec,0,0) If sendGps Then sendGps = false SendVariables
(sendVarResult,Com1,0,55,0000,0,"Public","CC5MPXGPSLatitude",gpsLat, 1)
SendVariables (sendVarResult,Com1,0,55,0000,0,"Public","CC5MPXGPSLongitude",gpsLong, 1)
EndIf
NextScan EndProg
Komentáře k této Příručce