/* AO_LOG_FLIGHT elements */
public int flight() { return data16(0); }
- public int idle_pres() { return data16(2); }
- public int idle_thrust() { return data16(4); }
/* AO_LOG_STATE elements */
public int state() { return data16(0); }
switch (cmd()) {
case AltosLib.AO_LOG_FLIGHT:
state.set_flight(flight());
- state.set_ground_pressure(adc_to_pa(idle_pres()));
+ state.set_ground_pressure(0.0);
state.set_accel_g(0, -1);
break;
case AltosLib.AO_LOG_STATE:
}
public AltosEepromRecord next() {
- if (start + length + length < eeprom.data.size())
- return new AltosEepromRecordFireTwo(eeprom, start + length);
- return null;
+ int s = next_start();
+ if (s < 0)
+ return null;
+ return new AltosEepromRecordFireTwo(eeprom, s);
}
public AltosEepromRecordFireTwo(AltosEepromNew eeprom, int start) {