From f487fd505b335f6a9a22813d7b8d234c73975644 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Sat, 26 Nov 2011 13:18:40 -0800 Subject: [PATCH] updated failsafe code --- ArduCopter/radio.pde | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ArduCopter/radio.pde b/ArduCopter/radio.pde index 85cf01a817..9592f20349 100644 --- a/ArduCopter/radio.pde +++ b/ArduCopter/radio.pde @@ -139,7 +139,7 @@ static void read_radio() g.rc_3.control_in = min(g.rc_3.control_in, 800); #endif - //throttle_failsafe(g.rc_3.radio_in); + throttle_failsafe(g.rc_3.radio_in); } } @@ -158,8 +158,8 @@ static void throttle_failsafe(uint16_t pwm) SendDebug("MSG FS ON "); SendDebugln(pwm, DEC); }else if(failsafeCounter == 10) { - ch3_failsafe = true; - //set_failsafe(true); + //ch3_failsafe = true; + set_failsafe(true); //failsafeCounter = 10; }else if (failsafeCounter > 10){ failsafeCounter = 11; @@ -176,8 +176,8 @@ static void throttle_failsafe(uint16_t pwm) SendDebug("MSG FS OFF "); SendDebugln(pwm, DEC); }else if(failsafeCounter == 0) { - ch3_failsafe = false; - //set_failsafe(false); + //ch3_failsafe = false; + set_failsafe(false); //failsafeCounter = -1; }else if (failsafeCounter <0){ failsafeCounter = -1;