Re: GPS sample recording.log file #help #automotive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



UPDATE: Got it to work, currently simulating GPS data.

To help other people, the format of the recording.log file is a standard JSON format.  Each event is separated by a new line character in the file.  For example, my file, using just a constant GPS location event, is as follows:

recording.log: 

{"altitude": 240, "latitude": 41.9973, "longitude": 21.428, "speed": 100, "track": 270, "timestamp": "2015-11-13T12:57:24.000Z"}
{"altitude": 240, "latitude": 41.9973, "longitude": 21.428, "speed": 100, "track": 270, "timestamp": "2015-11-13T12:57:24.000Z"}
{"altitude": 240, "latitude": 41.9973, "longitude": 21.428, "speed": 100, "track": 270, "timestamp": "2015-11-13T12:57:24.000Z"}
{"altitude": 240, "latitude": 41.9973, "longitude": 21.428, "speed": 100, "track": 270, "timestamp": "2015-11-13T12:57:24.000Z"}
{"altitude": 240, "latitude": 41.9973, "longitude": 21.428, "speed": 100, "track": 270, "timestamp": "2015-11-13T12:57:24.000Z"}
... etc

latitude + longitude + altitude + track are parsed as doubles in agl-service-gps, timestamp as a string.

To get the replay option in agl-service-gps to work, you must create this file as /var/scope-platform/agl-service-gps/recording.log and give it the following permissions:
chsmack -a _ /var/scope-platform/agl-service-gps/recording.log

Cheers,
Vele


_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8847) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Mute #automotive | Mute #help
Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]

_._,_._,_

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux