Skip to content

Commit

Permalink
fw offboard control mode: altitude control enabled (#23041)
Browse files Browse the repository at this point in the history
  • Loading branch information
yongyong3393 authored Apr 22, 2024
1 parent 0a7689f commit c7725d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/fw_pos_control/FixedwingPositionControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1404,6 +1404,9 @@ FixedwingPositionControl::control_auto_path(const float control_interval, const
tecs_fw_thr_max,
_param_sinkrate_target.get(),
_param_climbrate_target.get());

_att_sp.thrust_body[0] = min(get_tecs_thrust(), tecs_fw_thr_max);
_att_sp.pitch_body = get_tecs_pitch();
}

void
Expand Down

0 comments on commit c7725d7

Please sign in to comment.