Added else if switch for ACRO/RATTITUDE Handeling to be proper

This commit is contained in:
Eddy Scott
2015-10-27 20:39:11 -04:00
committed by Eddy
parent 4e5e8d1c95
commit 72c339a7ac
+1 -1
View File
@@ -2594,7 +2594,7 @@ set_main_state_rc(struct vehicle_status_s *status_local, struct manual_control_s
}
}
if(sp_man->rattitude_switch == manual_control_setpoint_s::SWITCH_POS_ON){
else if(sp_man->rattitude_switch == manual_control_setpoint_s::SWITCH_POS_ON){
/* Similar to acro transitions for multirotors. FW aircraft don't need a
* rattitude mode.*/
if (status.is_rotary_wing) {