Subversion Repositories FlightCtrl

Rev

Rev 1544 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1544 Rev 1545
Line 78... Line 78...
78
        uint8_t sreg = SREG;
78
        uint8_t sreg = SREG;
Line 79... Line 79...
79
 
79
 
80
        // disable all interrupts before reconfiguration
80
        // disable all interrupts before reconfiguration
Line -... Line 81...
-
 
81
        cli();
81
        cli();
82
 
82
 
83
        #ifndef USE_RC_JENNIC // LPD: FC_JN_Receiver support added
83
        // PPM-signal is connected to the Input Capture Pin (PD6) of timer 1
84
                // PPM-signal is connected to the Input Capture Pin (PD6) of timer 1
-
 
85
                DDRD &= ~(1<<DDD6);
Line 84... Line 86...
84
        DDRD &= ~(1<<DDD6);
86
                PORTD |= (1<<PORTD6);
85
        PORTD |= (1<<PORTD6);
87
        #endif
86
 
88
 
87
        // Channel 5,6,7 is decoded to servo signals at pin PD5 (J3), PD4(J4), PD3(J5)
89
        // Channel 5,6,7 is decoded to servo signals at pin PD5 (J3), PD4(J4), PD3(J5)
Line 154... Line 156...
154
The maximum duration of all channels at maximum value is  8 * 2 ms = 16 ms.
156
The maximum duration of all channels at maximum value is  8 * 2 ms = 16 ms.
155
The remaining time of (22.5 - 8 ms) ms = 14.5 ms  to (22.5 - 16 ms) ms = 6.5 ms is
157
The remaining time of (22.5 - 8 ms) ms = 14.5 ms  to (22.5 - 16 ms) ms = 6.5 ms is
156
the syncronization gap.
158
the syncronization gap.
157
*/
159
*/
Line -... Line 160...
-
 
160
 
158
 
161
#ifndef USE_RC_JENNIC // LPD: FC_JN_Receiver support added   
Line 159... Line 162...
159
#ifndef ACT_S3D_SUMSIGNAL
162
#ifndef ACT_S3D_SUMSIGNAL
160
 
163
 
161
ISR(TIMER1_CAPT_vect) // typical rate of 1 ms to 2 ms
164
ISR(TIMER1_CAPT_vect) // typical rate of 1 ms to 2 ms
Line 387... Line 390...
387
                        index++; // next channel
390
                        index++; // next channel
388
                } // eof (index < MAX_CHANNELS)
391
                } // eof (index < MAX_CHANNELS)
389
        } // eof within the PPM frame
392
        } // eof within the PPM frame
390
}
393
}
391
#endif
394
#endif
392
 
395
#endif