mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 12:53:35 +08:00
quadchute: fixed sign for handling altitude resets
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
committed by
Mathieu Bresciani
parent
b5467d88f7
commit
ca9cb2214f
@@ -324,7 +324,7 @@ void VtolType::handleEkfResets()
|
||||
_altitude_reset_counter = _local_pos->z_reset_counter;
|
||||
|
||||
if (PX4_ISFINITE(_quadchute_ref_alt)) {
|
||||
_quadchute_ref_alt += _local_pos->delta_z;
|
||||
_quadchute_ref_alt -= _local_pos->delta_z;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user