mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 13:03:34 +08:00
Switch manual_control_setpoint.z scaling from [0,1] to [-1,1]
To be consistent with all other axes of stick input and avoid future rescaling confusion. Note: for the MAVLink message 69 MANUAL_CONTROL it's using the full range according to the message specs now [-1000,1000].
This commit is contained in:
@@ -93,7 +93,7 @@ AirshipAttitudeControl::publish_actuator_controls()
|
||||
_actuator_controls.control[0] = 0.0f;
|
||||
_actuator_controls.control[1] = _manual_control_setpoint.x;
|
||||
_actuator_controls.control[2] = _manual_control_setpoint.r;
|
||||
_actuator_controls.control[3] = _manual_control_setpoint.z;
|
||||
_actuator_controls.control[3] = (_manual_control_setpoint.z + 1.f) * .5f;
|
||||
}
|
||||
|
||||
// note: _actuator_controls.timestamp_sample is set in AirshipAttitudeControl::Run()
|
||||
|
||||
Reference in New Issue
Block a user