Subversion Repositories FlightCtrl

Rev

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

Rev 756 Rev 757
Line 139... Line 139...
139
                PPM_in[index] = tmp; // update channel value
139
                PPM_in[index] = tmp; // update channel value
140
            }
140
            }
141
            index++; // next channel
141
            index++; // next channel
142
            // demux sum signal for channels 5 to 7 to J3, J4, J5
142
            // demux sum signal for channels 5 to 7 to J3, J4, J5
143
                if(index == 5) PORTD |= (1<<PORTD5); else PORTD &= ~(1<<PORTD5);
143
                if(index == 5) PORTD |= (1<<PORTD5); else PORTD &= ~(1<<PORTD5);
144
                //if(index == 6) PORTD |= (1<<PORTD4); else PORTD &= ~(1<<PORTD4);
144
                if(index == 6) PORTD |= (1<<PORTD4); else PORTD &= ~(1<<PORTD4);
145
                if(BoardRelease == 10)
145
                if(BoardRelease == 10)
146
                {
146
                {
147
                                if(index == 7) PORTD |= (1<<PORTD3); else PORTD &= ~(1<<PORTD3);
147
                                if(index == 7) PORTD |= (1<<PORTD3); else PORTD &= ~(1<<PORTD3);
148
                }
148
                }
149
        }
149
        }