Subversion Repositories FlightCtrl

Rev

Rev 1664 | Rev 1713 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1664 Rev 1701
Line 360... Line 360...
360
                                TCCR2A |= (1<<COM2A0); // make a low pulse
360
                                TCCR2A |= (1<<COM2A0); // make a low pulse
361
                                // set pulsewidth to stop pulse width
361
                                // set pulsewidth to stop pulse width
362
                                RemainingPulse = PPM_STOPPULSE;
362
                                RemainingPulse = PPM_STOPPULSE;
363
                                // accumulate time for correct sync gap
363
                                // accumulate time for correct sync gap
364
                                ServoFrameTime += RemainingPulse;
364
                                ServoFrameTime += RemainingPulse;
365
                                if(ServoActive && SenderOkay > 180) HEF4017R_OFF; // disable HEF4017 reset
365
                                if((ServoActive && SenderOkay > 180) || ServoActive == 2) HEF4017R_OFF; // disable HEF4017 reset
366
                                else HEF4017R_ON;
366
                                else HEF4017R_ON;
367
                                ServoIndex++; // change to next servo channel
367
                                ServoIndex++; // change to next servo channel
368
                                if(ServoIndex > EE_Parameter.ServoNickRefresh) ServoIndex = 0; // reset to the sync gap
368
                                if(ServoIndex > EE_Parameter.ServoNickRefresh) ServoIndex = 0; // reset to the sync gap
369
                        }
369
                        }
370
                        // set pulse output active
370
                        // set pulse output active