* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.altoslib_11;
+package org.altusmetrum.altoslib_12;
public class AltosTelemetryLocation extends AltosTelemetryStandard {
super(bytes);
}
- public void provide_data(AltosDataListener listener, AltosCalData cal_data) {
- super.provide_data(listener, cal_data);
+ public void provide_data(AltosDataListener listener) {
+ super.provide_data(listener);
- AltosGPS gps = new AltosGPS();
+ AltosCalData cal_data = listener.cal_data();
+
+ AltosGPS gps = cal_data.make_temp_gps(tick(), false);
int flags = flags();
gps.nsat = flags & 0xf;
cal_data.set_gps(gps);
}
listener.set_gps(gps);
+ cal_data.set_gps(gps);
+ cal_data.reset_temp_gps();
}
}