SITL: fix compiler warning by defaulting frame_type

This commit is contained in:
Randy Mackay 2016-05-26 17:03:28 +09:00
parent b76a993f7e
commit d26a9d4a22

View File

@ -67,7 +67,8 @@ void SingleCopter::update(const struct sitl_input &input)
pitch_thrust = (actuator[1] - actuator[3]) * 0.5f * thrust;
break;
case FRAME_COAX: {
case FRAME_COAX:
default: {
float motor1 = constrain_float((input.servos[4]-1000) / 1000.0f, 0, 1);
float motor2 = constrain_float((input.servos[5]-1000) / 1000.0f, 0, 1);
thrust = 0.5f*(motor1 + motor2);