Rev 1431 | Rev 1438 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1431 | Rev 1435 | ||
---|---|---|---|
Line 133... | Line 133... | ||
133 | NeuerDatensatzEmpfangen = 1; |
133 | NeuerDatensatzEmpfangen = 1; |
134 | AnzahlEmpfangsBytes = buf_ptr + 1; |
134 | AnzahlEmpfangsBytes = buf_ptr + 1; |
135 | RxdBuffer[buf_ptr] = '\r'; |
135 | RxdBuffer[buf_ptr] = '\r'; |
136 | if(RxdBuffer[2] == 'R') |
136 | if(RxdBuffer[2] == 'R') |
137 | { |
137 | { |
138 | LcdClear(); |
138 | LcdClear(); |
139 | wdt_enable(WDTO_250MS); // Reset-Commando |
139 | wdt_enable(WDTO_250MS); // Reset-Commando |
140 | ServoActive = 0; |
140 | ServoActive = 0; |
141 | 141 | ||
142 | } |
142 | } |
143 | } |
143 | } |
144 | } |
144 | } |
145 | else |
145 | else |
146 | switch(UartState) |
146 | switch(UartState) |
Line 371... | Line 371... | ||
371 | } |
371 | } |
372 | while(!UebertragungAbgeschlossen); |
372 | while(!UebertragungAbgeschlossen); |
373 | SendOutData('S', FC_ADDRESS, 1, &tempchar1, sizeof(tempchar1)); |
373 | SendOutData('S', FC_ADDRESS, 1, &tempchar1, sizeof(tempchar1)); |
374 | if(!MotorenEin) Piep(tempchar1,110); |
374 | if(!MotorenEin) Piep(tempchar1,110); |
375 | LipoDetection(0); |
375 | LipoDetection(0); |
376 | InitReceiver(); |
376 | LIBFC_ReceiverInit(); |
377 | break; |
377 | break; |
378 | case 'f': // auf anderen Parametersatz umschalten |
378 | case 'f': // auf anderen Parametersatz umschalten |
379 | if((1 <= pRxData[0]) && (pRxData[0] <= 5)) SetActiveParamSetNumber(pRxData[0]); |
379 | if((1 <= pRxData[0]) && (pRxData[0] <= 5)) SetActiveParamSetNumber(pRxData[0]); |
380 | tempchar1 = pRxData[0]; |
380 | tempchar1 = pRxData[0]; |
381 | while(!UebertragungAbgeschlossen); |
381 | while(!UebertragungAbgeschlossen); |
382 | SendOutData('F', FC_ADDRESS, 1, &tempchar1, sizeof(tempchar1)); |
382 | SendOutData('F', FC_ADDRESS, 1, &tempchar1, sizeof(tempchar1)); |
383 | if(!MotorenEin) Piep(tempchar1,110); |
383 | if(!MotorenEin) Piep(tempchar1,110); |
384 | LipoDetection(0); |
384 | LipoDetection(0); |
385 | InitReceiver(); |
385 | LIBFC_ReceiverInit(); |
386 | break; |
386 | break; |
387 | case 'y':// serial Potis |
387 | case 'y':// serial Potis |
388 | PPM_in[13] = (signed char) pRxData[0]; PPM_in[14] = (signed char) pRxData[1]; PPM_in[15] = (signed char) pRxData[2]; PPM_in[16] = (signed char) pRxData[3]; |
388 | PPM_in[13] = (signed char) pRxData[0]; PPM_in[14] = (signed char) pRxData[1]; PPM_in[15] = (signed char) pRxData[2]; PPM_in[16] = (signed char) pRxData[3]; |
389 | PPM_in[17] = (signed char) pRxData[4]; PPM_in[18] = (signed char) pRxData[5]; PPM_in[19] = (signed char) pRxData[6]; PPM_in[20] = (signed char) pRxData[7]; |
389 | PPM_in[17] = (signed char) pRxData[4]; PPM_in[18] = (signed char) pRxData[5]; PPM_in[19] = (signed char) pRxData[6]; PPM_in[20] = (signed char) pRxData[7]; |
390 | PPM_in[21] = (signed char) pRxData[8]; PPM_in[22] = (signed char) pRxData[9]; PPM_in[23] = (signed char) pRxData[10]; PPM_in[24] = (signed char) pRxData[11]; |
390 | PPM_in[21] = (signed char) pRxData[8]; PPM_in[22] = (signed char) pRxData[9]; PPM_in[23] = (signed char) pRxData[10]; PPM_in[24] = (signed char) pRxData[11]; |