mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 12:43:34 +08:00
Populate rate control setpoints properly
This commit is contained in:
committed by
Silvan Fuhrer
parent
6f24f4cd1c
commit
958c61dbba
@@ -622,9 +622,9 @@ void FixedwingAttitudeControl::Run()
|
|||||||
* Lazily publish the rate setpoint (for analysis, the actuators are published below)
|
* Lazily publish the rate setpoint (for analysis, the actuators are published below)
|
||||||
* only once available
|
* only once available
|
||||||
*/
|
*/
|
||||||
_rates_sp.roll = _roll_ctrl.get_desired_bodyrate();
|
_rates_sp.roll = _roll_ctrl.get_desired_rate();
|
||||||
_rates_sp.pitch = _pitch_ctrl.get_desired_bodyrate();
|
_rates_sp.pitch = _pitch_ctrl.get_desired_rate();
|
||||||
_rates_sp.yaw = (wheel_control) ? _wheel_ctrl.get_desired_rate() : _yaw_ctrl.get_desired_bodyrate();
|
_rates_sp.yaw = (wheel_control) ? _wheel_ctrl.get_desired_rate() : _yaw_ctrl.get_desired_rate();
|
||||||
|
|
||||||
_rates_sp.timestamp = hrt_absolute_time();
|
_rates_sp.timestamp = hrt_absolute_time();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user