Skip to content

Commit

Permalink
quadchute: fixed sign for handling altitude resets
Browse files Browse the repository at this point in the history
Signed-off-by: RomanBapst <[email protected]>
  • Loading branch information
RomanBapst authored and bresch committed May 7, 2024
1 parent b5467d8 commit ca9cb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/vtol_att_control/vtol_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
Expand Down

0 comments on commit ca9cb22

Please sign in to comment.