fw offboard control mode: altitude control enabled (#23041)

This commit is contained in:
Juyong Shin 2024-04-22 13:57:57 +09:00 committed by GitHub
parent 0a7689f323
commit c7725d74b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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