AP_Motors: minor format fix to tailsitter

This commit is contained in:
Randy Mackay 2018-12-20 20:52:43 +09:00
parent f89c18740d
commit d4f838495d

View File

@ -161,8 +161,8 @@ void AP_MotorsTailsitter::output_armed_stabilizing()
}
// calculate left and right throttle outputs
_thrust_left = throttle_thrust + roll_thrust*0.5;
_thrust_right = throttle_thrust - roll_thrust*0.5;
_thrust_left = throttle_thrust + roll_thrust*0.5f;
_thrust_right = throttle_thrust - roll_thrust*0.5f;
// if max thrust is more than one reduce average throttle
thrust_max = MAX(_thrust_right,_thrust_left);