Rev 1400 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1400 | Rev 1568 | ||
---|---|---|---|
Line 132... | Line 132... | ||
132 | AnzahlEmpfangsBytes = buf_ptr + 1; |
132 | AnzahlEmpfangsBytes = buf_ptr + 1; |
133 | RxdBuffer[buf_ptr] = '\r'; |
133 | RxdBuffer[buf_ptr] = '\r'; |
134 | if(RxdBuffer[2] == 'R') |
134 | if(RxdBuffer[2] == 'R') |
135 | { |
135 | { |
136 | wdt_enable(WDTO_250MS); // Reset-Commando |
136 | wdt_enable(WDTO_250MS); // Reset-Commando |
137 | ServoActive = 0; |
- | |
138 | } |
137 | } |
139 | } |
138 | } |
140 | } |
139 | } |
141 | else |
140 | else |
142 | switch(UartState) |
141 | switch(UartState) |
Line 534... | Line 533... | ||
534 | if(WinkelOut.CalcState > 4) WinkelOut.CalcState = 6; // wird dann in SPI auf Null gesetzt |
533 | if(WinkelOut.CalcState > 4) WinkelOut.CalcState = 6; // wird dann in SPI auf Null gesetzt |
535 | Kompass_Timer = SetDelay(99); |
534 | Kompass_Timer = SetDelay(99); |
536 | } |
535 | } |
537 | if(((DebugDataIntervall>0 && CheckDelay(Debug_Timer)) || DebugDataAnforderung) && UebertragungAbgeschlossen) |
536 | if(((DebugDataIntervall>0 && CheckDelay(Debug_Timer)) || DebugDataAnforderung) && UebertragungAbgeschlossen) |
538 | { |
537 | { |
539 | //if(Poti3 > 64) |
538 | //if(Poti3 > 64) |
540 | SendOutData('D', FC_ADDRESS, 1, (unsigned char *) &DebugOut,sizeof(DebugOut)); |
539 | SendOutData('D', FC_ADDRESS, 1, (unsigned char *) &DebugOut,sizeof(DebugOut)); |
541 | DebugDataAnforderung = 0; |
540 | DebugDataAnforderung = 0; |
542 | if(DebugDataIntervall>0) Debug_Timer = SetDelay(DebugDataIntervall); |
541 | if(DebugDataIntervall>0) Debug_Timer = SetDelay(DebugDataIntervall); |
543 | } |
542 | } |
544 | if(Intervall3D > 0 && CheckDelay(Timer3D) && UebertragungAbgeschlossen) |
543 | if(Intervall3D > 0 && CheckDelay(Timer3D) && UebertragungAbgeschlossen) |