Subversion Repositories FlightCtrl

Rev

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

Rev 529 Rev 539
Line 94... Line 94...
94
        //unsigned int timer2 = 0;
94
        //unsigned int timer2 = 0;
95
    DDRB  = 0x00;
95
    DDRB  = 0x00;
96
    PORTB = 0x00;
96
    PORTB = 0x00;
97
    for(timer = 0; timer < 1000; timer++); // verzögern
97
    for(timer = 0; timer < 1000; timer++); // verzögern
98
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
98
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
-
 
99
        // Salvo 9.12.2007 PC4 als Ausgang
99
    DDRC  = 0x81; // SCL
100
 //   DDRC  = 0x81; // SCL
-
 
101
    DDRC  = 0x91; // SCL und PC4
100
    PORTC = 0xff; // Pullup SDA
102
    PORTC = 0xff; // Pullup SDA
101
    DDRB  = 0x1B; // LEDs und Druckoffset
103
    DDRB  = 0x1B; // LEDs und Druckoffset
102
    PORTB = 0x01; // LED_Rot
104
    PORTB = 0x01; // LED_Rot
103
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
105
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
104
    DDRD  |=0x80; // J7
106
    DDRD  |=0x80; // J7
Line 113... Line 115...
113
    beeptime = 2000;
115
    beeptime = 2000;
Line 114... Line 116...
114
 
116
 
Line 115... Line 117...
115
        StickGier = 0; PPM_in[K_GAS] = 0;StickRoll = 0; StickNick = 0;
117
        StickGier = 0; PPM_in[K_GAS] = 0;StickRoll = 0; StickNick = 0;
-
 
118
 
116
 
119
    ROT_OFF;
-
 
120
 
117
    ROT_OFF;
121
 
118
   
122
 
119
    Timer_Init();
123
    Timer_Init();
120
        UART_Init();
124
        UART_Init();
121
    rc_sum_init();
125
    rc_sum_init();
Line 168... Line 172...
168
        }
172
        }
Line 169... Line 173...
169
       
173
       
Line 170... Line 174...
170
        SetNeutral();
174
        SetNeutral();
-
 
175
 
-
 
176
        ROT_OFF;
-
 
177
        // Salvo 9.12.2007 Defaultwert fuer Umschaltsignal fuer RX: Bluettooth Modul aktiv
171
 
178
        RX_SWTCH_OFF;
172
        ROT_OFF;
179
    // Salvo End
173
   
180
   
174
    beeptime = 2000;
181
    beeptime = 2000;