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 authored and tridge committed Nov 27, 2024
1 parent 5b8a702 commit 2f9ff3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 * 0.01f);
}
auto_state.last_home_alt_cm = home_alt_cm;
}
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_TECS/AP_TECS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1527,4 +1527,5 @@ void AP_TECS::offset_altitude(const float alt_offset)
// _hgt_dem
// _hgt_dem_in_raw
// _hgt_dem_in
// Energies
}

0 comments on commit 2f9ff3e

Please sign in to comment.