kopia lustrzana https://github.com/projecthorus/chasemapper
Fix display of chase car tail, don't display time-to-landing unless payload descent rate is < -1.0 m/s
rodzic
cc89d73644
commit
54ad15ef31
|
@ -144,8 +144,8 @@ def handle_new_payload_position(data):
|
|||
_vel_v = _state['ascent_rate']
|
||||
_speed = _state['speed']
|
||||
# If this payload is in descent, calculate the time to landing.
|
||||
|
||||
if _vel_v < 0.0:
|
||||
# Use < -1.0, to avoid jitter when the payload is on the ground.
|
||||
if _vel_v < -1.0:
|
||||
# Try and get the altitude of the chase car - we use this as the expected 'ground' level.
|
||||
_car_state = car_track.get_latest_state()
|
||||
if _car_state != None:
|
||||
|
|
|
@ -497,6 +497,7 @@
|
|||
chase_car_position.path.addTo(map);
|
||||
}
|
||||
} else {
|
||||
chase_car_position.path.addLatLng(chase_car_position.latest_data);
|
||||
chase_car_position.marker.setLatLng(chase_car_position.latest_data).update();
|
||||
}
|
||||
// Rotate car icon based on heading, but only if we're going faster than 20kph (5.5m/s).
|
||||
|
|
Ładowanie…
Reference in New Issue