Updated telemetry to use new time_stamp feature
This commit is contained in:
@@ -179,7 +179,6 @@ GpsData Gps::getData() {
|
|||||||
output.time_write_time_ = millis() - gps_->time.age();
|
output.time_write_time_ = millis() - gps_->time.age();
|
||||||
|
|
||||||
output.num_fix_ = gps_->sentencesWithFix();
|
output.num_fix_ = gps_->sentencesWithFix();
|
||||||
gps_->time.minute();
|
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ int Telemetry::loop() {
|
|||||||
vbatGlobalRead(packet.vbat);
|
vbatGlobalRead(packet.vbat);
|
||||||
GpsData gps;
|
GpsData gps;
|
||||||
gpsGlobalRead(gps);
|
gpsGlobalRead(gps);
|
||||||
|
packet.time_stamp = gps.time_;
|
||||||
packet.lat = gps.lat_.value_;
|
packet.lat = gps.lat_.value_;
|
||||||
packet.lng = gps.lng_.value_;
|
packet.lng = gps.lng_.value_;
|
||||||
packet.speed = gps.speed_.value_;
|
packet.speed = gps.speed_.value_;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
/home/hector/projects/Exergie/TelemetryCommon/
|
/home/hector/projects/Exergie/TelemetryCommon/cpp/
|
||||||
Reference in New Issue
Block a user