summaryrefslogtreecommitdiff
path: root/altoslib
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-10 10:15:47 -0700
committerKeith Packard <keithp@keithp.com>2014-06-10 10:15:47 -0700
commit871fb4753a3b54cc2e22309e80e24dfe9cc54511 (patch)
treeba0253afc11be0798a9cbb52cd2e7c1aadc79c8c /altoslib
parent5f2029bd4e31289fb03e6af39abdbc16f8b8fa78 (diff)
altoslib: TeleGPS no longer logs satellite information
This doubles the amount of space available to log position information Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib')
-rw-r--r--altoslib/AltosEepromGPS.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/altoslib/AltosEepromGPS.java b/altoslib/AltosEepromGPS.java
index 33172eed..1820cd61 100644
--- a/altoslib/AltosEepromGPS.java
+++ b/altoslib/AltosEepromGPS.java
@@ -52,12 +52,6 @@ public class AltosEepromGPS extends AltosEeprom {
public int hdop() { return data8(23); }
public int vdop() { return data8(24); }
public int mode() { return data8(25); }
- public int state() { return data8(26); }
-
- /* AO_LOG_GPS_SAT elements */
- public int nsat() { return data16(0); }
- public int svid(int n) { return data8(2 + n * 2); }
- public int c_n(int n) { return data8(2 + n * 2 + 1); }
public AltosEepromGPS (AltosEepromChunk chunk, int start) throws ParseException {
parse_chunk(chunk, start);
@@ -91,7 +85,6 @@ public class AltosEepromGPS extends AltosEeprom {
break;
case AltosLib.AO_LOG_GPS_TIME:
state.set_tick(tick);
- state.set_state(state());
gps = state.make_temp_gps(false);
gps.lat = latitude() / 1e7;
gps.lon = longitude() / 1e7;
@@ -117,16 +110,6 @@ public class AltosEepromGPS extends AltosEeprom {
gps.hdop = hdop();
gps.vdop = vdop();
break;
- case AltosLib.AO_LOG_GPS_SAT:
- state.set_tick(tick);
- gps = state.make_temp_gps(true);
-
- int n = nsat();
- if (n > max_sat)
- n = max_sat;
- for (int i = 0; i < n; i++)
- gps.add_sat(svid(i), c_n(i));
- break;
}
}