Revert "Added check for offboard_control_signal_lost when switching to offboard mode with rc switch"

This reverts commit 59a5f37b7f.
This commit is contained in:
Anton Babushkin
2014-01-29 18:06:03 +01:00
parent 59a5f37b7f
commit 01c9092213
+2 -2
View File
@@ -1478,8 +1478,8 @@ check_mode_switches(struct manual_control_setpoint_s *sp_man, struct vehicle_sta
if (!isfinite(sp_man->offboard_switch)) {
current_status->offboard_switch = OFFBOARD_SWITCH_NONE;
} else if (sp_man->offboard_switch > STICK_ON_OFF_LIMIT && !status.offboard_control_signal_lost) {
current_status->offboard_switch = OFFBOARD_SWITCH_OFFBOARD;
} else if (sp_man->offboard_switch > STICK_ON_OFF_LIMIT) {
current_status->offboard_switch = OFFBOARD_SWITCH_OFFBOARD;
} else {
current_status->offboard_switch = OFFBOARD_SWITCH_ONBOARD;