mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 14:33:34 +08:00
VehicleAttitudeSetpoint: rename fw_control_yaw to fw_control_yaw_wheel to make usage clearer
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
4b036e6723
commit
6c611a7e8b
@@ -364,12 +364,11 @@ void FixedwingAttitudeControl::Run()
|
||||
|
||||
// the position controller will not emit attitude setpoints in some modes
|
||||
// we need to make sure that this flag is reset
|
||||
_att_sp.fw_control_yaw = _att_sp.fw_control_yaw && _vcontrol_mode.flag_control_auto_enabled;
|
||||
_att_sp.fw_control_yaw_wheel = _att_sp.fw_control_yaw_wheel && _vcontrol_mode.flag_control_auto_enabled;
|
||||
|
||||
bool wheel_control = false;
|
||||
|
||||
// TODO: manual wheel_control on ground?
|
||||
if (_param_fw_w_en.get() && _att_sp.fw_control_yaw) {
|
||||
if (_param_fw_w_en.get() && _att_sp.fw_control_yaw_wheel) {
|
||||
wheel_control = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user