fw_pos_control_l1: added missing alitude reset counter update

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman 2016-10-12 14:05:33 +02:00
parent d4c87d62f1
commit b3f9114b1c
1 changed files with 1 additions and 0 deletions

View File

@ -2293,6 +2293,7 @@ FixedwingPositionControl::task_main()
if (_control_mode.flag_control_manual_enabled) {
if (_control_mode.flag_control_altitude_enabled && _global_pos.alt_reset_counter != _alt_reset_counter) {
_hold_alt += _global_pos.delta_alt;
_alt_reset_counter = _global_pos.alt_reset_counter;
}
// adjust navigation waypoints in position control mode