mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 16:24:08 +08:00
cs_check: remove unnecessary constrain
This commit is contained in:
parent
2d7653406a
commit
0ecf53d911
@ -631,9 +631,7 @@ void ControlAllocator::preflight_check_handle_tilt_control(hrt_abstime now)
|
||||
if (_preflight_check_axis == vehicle_command_s::AXIS_COLLECTIVE_TILT) {
|
||||
|
||||
if (is_tiltrotor) {
|
||||
const float modified_tilt_control = math::constrain(_preflight_check_input, 0.f, 1.f);
|
||||
|
||||
_actuator_effectiveness->overrideCollectiveTilt(true, modified_tilt_control);
|
||||
_actuator_effectiveness->overrideCollectiveTilt(true, _preflight_check_input);
|
||||
|
||||
} else {
|
||||
// Commanded collective tilt axis but the vehicle is not a tiltrotor. Abort
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user