Plane: fixed some warnings
This commit is contained in:
parent
4fa7bb1486
commit
9058949558
@ -289,7 +289,7 @@ static void calc_nav_yaw(float speed_scaler, float ch4_inf)
|
||||
g.channel_rudder.servo_out += g.pidServoRudder.get_pid(error, speed_scaler);
|
||||
#else // APM_CONTROL == ENABLED
|
||||
// use the new APM_Control library
|
||||
g.channel_rudder.servo_out = g.yawController.get_servo_out(speed_scaler, ch4_inf < 0.25) + g.channel_roll.servo_out * g.kff_rudder_mix;
|
||||
g.channel_rudder.servo_out = g.yawController.get_servo_out(speed_scaler, ch4_inf < 0.25f) + g.channel_roll.servo_out * g.kff_rudder_mix;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -163,10 +163,8 @@ static void control_failsafe(uint16_t pwm)
|
||||
}
|
||||
if (failsafeCounter == 1) {
|
||||
gcs_send_text_fmt(PSTR("MSG FS OFF %u"), (unsigned)pwm);
|
||||
}else if(failsafeCounter == 0) {
|
||||
} else if(failsafeCounter == 0) {
|
||||
ch3_failsafe = false;
|
||||
}else if (failsafeCounter <0) {
|
||||
failsafeCounter = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user