diff --git a/horusmapper.py b/horusmapper.py index 4f1df80..ec61b9d 100644 --- a/horusmapper.py +++ b/horusmapper.py @@ -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: diff --git a/templates/index.html b/templates/index.html index b23d29c..a74b7c8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -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).