X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altoslib%2FAltosEepromGPS.java;h=1820cd612a6ca5c5b1d76ae48fcd65db0f25866f;hp=33172eed9825b5378b48567d6bd0d663ed30ac40;hb=871fb4753a3b54cc2e22309e80e24dfe9cc54511;hpb=5f2029bd4e31289fb03e6af39abdbc16f8b8fa78 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; } }