ekf: add vehicle at rest to flags

This commit is contained in:
CarlOlsson
2020-02-12 18:58:24 +01:00
committed by Mathieu Bresciani
parent 89bcebd631
commit b6420d0b79
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ bool Ekf::gps_is_good(const gps_message &gps)
// The following checks are only valid when the vehicle is at rest
const double lat = gps.lat * 1.0e-7;
const double lon = gps.lon * 1.0e-7;
if (!_control_status.flags.in_air && _vehicle_at_rest) {
if (!_control_status.flags.in_air && _control_status.flags.vehicle_at_rest) {
// Calculate position movement since last measurement
float delta_pos_n = 0.0f;
float delta_pos_e = 0.0f;