Rev 1636 | Rev 1639 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1636 | Rev 1638 | ||
---|---|---|---|
Line 74... | Line 74... | ||
74 | "Motor 2 ", |
74 | "Motor 2 ", |
75 | "Motor 3 ", |
75 | "Motor 3 ", |
76 | "Motor 4 ", //15 |
76 | "Motor 4 ", //15 |
77 | " ", |
77 | " ", |
78 | " ", |
78 | " ", |
79 | "VarioMeter ", |
79 | " ", |
80 | "MK3Mag CalState ", |
80 | " ", |
81 | "Servo ", //20 |
81 | "Servo ", //20 |
82 | "Hovergas ", |
82 | "Hovergas ", |
83 | "Current [0.1A] ", |
83 | "Current [0.1A] ", |
84 | "Capacity [mAh] ", |
84 | "Capacity [mAh] ", |
85 | " ", |
85 | " ", |
Line 413... | Line 413... | ||
413 | else memcpy(&MotorTest[0], (unsigned char *)pRxData, 4); |
413 | else memcpy(&MotorTest[0], (unsigned char *)pRxData, 4); |
414 | while(!UebertragungAbgeschlossen); |
414 | while(!UebertragungAbgeschlossen); |
415 | SendOutData('T', MeineSlaveAdresse, 0); |
415 | SendOutData('T', MeineSlaveAdresse, 0); |
416 | PC_MotortestActive = 250; |
416 | PC_MotortestActive = 250; |
417 | PcZugriff = 255; |
417 | PcZugriff = 255; |
- | 418 | AboTimeOut = SetDelay(ABO_TIMEOUT); |
|
418 | break; |
419 | break; |
419 | // 'K' comand placed here only for compatibility to old MK3MAG software, that does not send the right Slave Address |
420 | // 'K' comand placed here only for compatibility to old MK3MAG software, that does not send the right Slave Address |
420 | case 'K':// Kompasswert |
421 | case 'K':// Kompasswert |
421 | memcpy((unsigned char *)&KompassValue , (unsigned char *)pRxData, sizeof(KompassValue)); |
422 | memcpy((unsigned char *)&KompassValue , (unsigned char *)pRxData, sizeof(KompassValue)); |
422 | KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
423 | KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |