Selecting an old tracker would often fail to switch the bearing line
as it was using the map data instead of just using the local data for
the relavant tracker.
Signed-off-by: Keith Packard <keithp@keithp.com>
AltosDroid altos_droid;
AltosLatLon here;
AltosDroid altos_droid;
AltosLatLon here;
AltosLatLon pad;
Canvas canvas;
AltosLatLon pad;
Canvas canvas;
}
private void draw_positions() {
}
private void draw_positions() {
- line.set_a(map.last_position);
line.set_b(here);
line.paint();
draw_bitmap(pad, pad_bitmap, pad_off_x, pad_off_y);
line.set_b(here);
line.paint();
draw_bitmap(pad, pad_bitmap, pad_off_x, pad_off_y);
rocket = new Rocket(serial, this);
rockets.put(serial, rocket);
}
rocket = new Rocket(serial, this);
rockets.put(serial, rocket);
}
- if (t_state.gps != null)
- rocket.set_position(new AltosLatLon(t_state.gps.lat, t_state.gps.lon), t_state.received_time);
+ if (t_state.gps != null) {
+ AltosLatLon latlon = new AltosLatLon(t_state.gps.lat, t_state.gps.lon);
+ rocket.set_position(latlon, t_state.received_time);
+ if (state.serial == serial)
+ there = latlon;
+ }
if (state != null)
rocket.set_active(state.serial == serial);
}
if (state != null)
rocket.set_active(state.serial == serial);
}