projects
/
gps-watch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: Rename TimeAndPos::latitude to latitude_deg.
[gps-watch.git]
/
src
/
common
/
logger.rs
diff --git
a/src/common/logger.rs
b/src/common/logger.rs
index 1c982afa96163cb68714d491c10a3f0d3217593f..8a1c05cd75f89b676635b7a37c991cde1c84688b 100644
(file)
--- a/
src/common/logger.rs
+++ b/
src/common/logger.rs
@@
-360,7
+360,7
@@
impl<'a> Logger<'a> {
self.prepare_write_buffer(true);
self.prepare_write_buffer(true);
- self.write_packet(0, tap.latitude
, tap.longitude
);
+ self.write_packet(0, tap.latitude
_deg, tap.longitude_deg
);
self.recording_id
}
self.recording_id
}
@@
-376,8
+376,8
@@
impl<'a> Logger<'a> {
// the intervals to full seconds.
let d_time_s = (d_time_ms + 500) / 1000;
// the intervals to full seconds.
let d_time_s = (d_time_ms + 500) / 1000;
- let d_lat = tap.latitude
- prev_tap.latitude
;
- let d_lon = tap.longitude
- prev_tap.longitude
;
+ let d_lat = tap.latitude
_deg - prev_tap.latitude_deg
;
+ let d_lon = tap.longitude
_deg - prev_tap.longitude_deg
;
if self.write_packet(d_time_s, d_lat, d_lon) {
self.flush_in_flight(false);
if self.write_packet(d_time_s, d_lat, d_lon) {
self.flush_in_flight(false);