quadchute: fixed sign for handling altitude resets

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2024-05-02 14:44:35 +02:00
committed by Mathieu Bresciani
parent b5467d88f7
commit ca9cb2214f
+1 -1
View File
@@ -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;
}
}