Hello All,I want to add the date / timestamp to the serial output of ArduPilot.I can see where to add it, but I don't really see a date variable or method in the code.Does it exist?Thanks!John C.
You need to be a member of diydrones to add comments!
In the system tab, the function print_data reports the telemetry for the ArduPilot; IIRC, it sends about once per second. GPS time isn't included in the telemetry data, but it should be relatively easy to add. For the Ublox GPS, you need to look at the GPS_UBLOX tab. In that tab, there is a variable named iTOW which contains the number of milliseconds since the beginning of the week (the GPS epoch is weekly). You can translate that to date/time, or just transmit the var directly and convert on you ground station (which I'd recommend.) Since our missions are relatively short, you could probably send just the least significant bytes, and use your ground station's clock time as your reference, using the milliseconds as relative time.
There is a time field in the GPS data, but I think it varies depending on which GPS you are using. For the Ublox, I think it's milliseconds from the beginning of the week.
Replies