From 9282c8d0d9e74714938fa68f858a83d34cbe10d3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 17 Feb 2014 13:56:50 +1100 Subject: [PATCH] Plane: allow for a wider range of values on the control switch --- ArduPlane/control_modes.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/control_modes.pde b/ArduPlane/control_modes.pde index 5f5c9f010d..81a59eb413 100644 --- a/ArduPlane/control_modes.pde +++ b/ArduPlane/control_modes.pde @@ -59,7 +59,7 @@ static void read_control_switch() static uint8_t readSwitch(void){ uint16_t pulsewidth = hal.rcin->read(g.flight_mode_channel - 1); - if (pulsewidth <= 910 || pulsewidth >= 2090) return 255; // This is an error condition + if (pulsewidth <= 800 || pulsewidth >= 2200) return 255; // This is an error condition if (pulsewidth > 1230 && pulsewidth <= 1360) return 1; if (pulsewidth > 1360 && pulsewidth <= 1490) return 2; if (pulsewidth > 1490 && pulsewidth <= 1620) return 3;