summaryrefslogtreecommitdiff
path: root/altoslib/AltosEepromRecordMega.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-10-22 14:04:09 -0500
committerKeith Packard <keithp@keithp.com>2017-10-22 14:04:09 -0500
commit749400fd244eba38806c623d2a35722642230698 (patch)
tree39f95bc777544c6bd80f71ba824b81133edf6379 /altoslib/AltosEepromRecordMega.java
parente98235e314ac764509af26c93da9e6d1de8184ea (diff)
altoslib: Move temp GPS API from cal_data to data_listener
This makes the API more consistent, and means that the listener is responsible for mangaing the temp gps state. In particular, the AltosDataListener set_gps API now calls the cal_data function. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosEepromRecordMega.java')
-rw-r--r--altoslib/AltosEepromRecordMega.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/altoslib/AltosEepromRecordMega.java b/altoslib/AltosEepromRecordMega.java
index ad3e23fd..ea5aff5c 100644
--- a/altoslib/AltosEepromRecordMega.java
+++ b/altoslib/AltosEepromRecordMega.java
@@ -188,7 +188,7 @@ public class AltosEepromRecordMega extends AltosEepromRecord {
listener.set_pyro_fired(pyro());
break;
case AltosLib.AO_LOG_GPS_TIME:
- gps = cal_data.make_temp_gps(tick(), false);
+ gps = listener.make_temp_gps(false);
gps.lat = latitude() / 1e7;
gps.lon = longitude() / 1e7;
@@ -231,7 +231,7 @@ public class AltosEepromRecordMega extends AltosEepromRecord {
}
break;
case AltosLib.AO_LOG_GPS_SAT:
- gps = cal_data.make_temp_gps(tick(), true);
+ gps = listener.make_temp_gps(true);
int n = nsat();
if (n > max_sat)