Skip to content

Commit

Permalink
Plane: Call new TECS method in case of altitude change
Browse files Browse the repository at this point in the history
  • Loading branch information
Georacer committed Nov 19, 2024
1 parent 32ab2b7 commit 1fd36ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduPlane/altitude.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void Plane::check_home_alt_change(void)
next_WP_loc.alt += alt_change_cm;
}
// reset TECS to force the field elevation estimate to reset
TECS_controller.reset();
TECS_controller.offset_altitude(alt_change_cm);
}
auto_state.last_home_alt_cm = home_alt_cm;
}
Expand Down

0 comments on commit 1fd36ad

Please sign in to comment.