Subversion Repositories FlightCtrl

Rev

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

Rev 2496 Rev 2497
Line 370... Line 370...
370
                case FC_ADDRESS: // FC special commands
370
                case FC_ADDRESS: // FC special commands
371
                switch(RxdBuffer[2])
371
                switch(RxdBuffer[2])
372
                {
372
                {
373
                        case 'K':// Kompasswert
373
                        case 'K':// Kompasswert
374
                                        memcpy((unsigned char *)&KompassValue , (unsigned char *)pRxData, sizeof(KompassValue));
374
                                        memcpy((unsigned char *)&KompassValue , (unsigned char *)pRxData, sizeof(KompassValue));
375
//                                      KompassRichtung = ((540 + KompassValue - KompassSollWert) % 360) - 180;
-
 
376
                                        break;
375
                                        break;
377
                        case 't':// Motortest
376
                        case 't':// Motortest
378
                                if(AnzahlEmpfangsBytes > 20) memcpy(&MotorTest[0], (unsigned char *)pRxData, sizeof(MotorTest));
377
                                if(AnzahlEmpfangsBytes > 20) memcpy(&MotorTest[0], (unsigned char *)pRxData, sizeof(MotorTest));
379
                                else memcpy(&MotorTest[0], (unsigned char *)pRxData, 4);
378
                                else memcpy(&MotorTest[0], (unsigned char *)pRxData, 4);
380
                                        PC_MotortestActive = 240;
379
                                        PC_MotortestActive = 240;
Line 610... Line 609...
610
                                        AboTimeOut = SetDelay(ABO_TIMEOUT);
609
                                        AboTimeOut = SetDelay(ABO_TIMEOUT);
611
                                        break;
610
                                        break;
612
                        // 'K' comand placed here only for compatibility to old MK3MAG software, that does not send the right Slave Address
611
                        // 'K' comand placed here only for compatibility to old MK3MAG software, that does not send the right Slave Address
613
                        case 'K':// Kompasswert
612
                        case 'K':// Kompasswert
614
                                        memcpy((unsigned char *)&KompassValue , (unsigned char *)pRxData, sizeof(KompassValue));
613
                                        memcpy((unsigned char *)&KompassValue , (unsigned char *)pRxData, sizeof(KompassValue));
615
//                                      KompassRichtung = ((540 + KompassValue - KompassSollWert) % 360) - 180;
-
 
616
                                        break;
614
                                        break;
617
                        case 'a':// Texte der Analogwerte
615
                        case 'a':// Texte der Analogwerte
618
                                        DebugTextAnforderung = pRxData[0];
616
                                        DebugTextAnforderung = pRxData[0];
619
                                        if (DebugTextAnforderung > 31) DebugTextAnforderung = 31;
617
                                        if (DebugTextAnforderung > 31) DebugTextAnforderung = 31;
620
                                        PcZugriff = 255;
618
                                        PcZugriff = 255;