Rev 1352 | Rev 1391 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1352 | Rev 1377 | ||
---|---|---|---|
Line 294... | Line 294... | ||
294 | unsigned char tempchar1, tempchar2; |
294 | unsigned char tempchar1, tempchar2; |
295 | Decode64(); // dekodiere datenblock im Empfangsbuffer |
295 | Decode64(); // dekodiere datenblock im Empfangsbuffer |
296 | switch(RxdBuffer[1]-'a') // check for Slave Address |
296 | switch(RxdBuffer[1]-'a') // check for Slave Address |
297 | { |
297 | { |
298 | case FC_ADDRESS: // FC special commands |
298 | case FC_ADDRESS: // FC special commands |
299 | - | ||
300 | switch(RxdBuffer[2]) |
299 | switch(RxdBuffer[2]) |
301 | { |
300 | { |
302 | case 'K':// Kompasswert |
301 | case 'K':// Kompasswert |
303 | memcpy((unsigned char *)&KompassValue , (unsigned char *)pRxData, sizeof(KompassValue)); |
302 | memcpy((unsigned char *)&KompassValue , (unsigned char *)pRxData, sizeof(KompassValue)); |
304 | KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
303 | KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
Line 329... | Line 328... | ||
329 | SendOutData('M', FC_ADDRESS, 1, &tempchar1, sizeof(tempchar1)); |
328 | SendOutData('M', FC_ADDRESS, 1, &tempchar1, sizeof(tempchar1)); |
330 | break; |
329 | break; |
Line 331... | Line 330... | ||
331 | 330 | ||
332 | case 'p': // get PPM Channels |
331 | case 'p': // get PPM Channels |
- | 332 | GetPPMChannelAnforderung = 1; |
|
333 | GetPPMChannelAnforderung = 1; |
333 | PcZugriff = 255; |
Line 334... | Line 334... | ||
334 | break; |
334 | break; |
335 | 335 | ||
336 | case 'q':// "Get"-Anforderung für Settings |
336 | case 'q':// "Get"-Anforderung für Settings |
Line 427... | Line 427... | ||
427 | break; |
427 | break; |
Line 428... | Line 428... | ||
428 | 428 | ||
429 | case 'g':// |
429 | case 'g':// |
430 | GetExternalControl = 1; |
430 | GetExternalControl = 1; |
- | 431 | break; |
|
- | 432 | case 'y':// serial Potis |
|
- | 433 | 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]; |
|
- | 434 | 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]; |
|
- | 435 | 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]; |
|
431 | break; |
436 | break; |
432 | } |
437 | } |
433 | break; // default: |
438 | break; // default: |
434 | } |
439 | } |
435 | NeuerDatensatzEmpfangen = 0; |
440 | NeuerDatensatzEmpfangen = 0; |