Subversion Repositories NaviCtrl

Rev

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

Rev 348 Rev 350
Line 686... Line 686...
686
                                FC.Error[1]                     |= FromFlightCtrl.Param.Byte[6];
686
                                FC.Error[1]                     |= FromFlightCtrl.Param.Byte[6];
687
                                FC.Error[2]                     |= FromFlightCtrl.Param.Byte[7];
687
                                FC.Error[2]                     |= FromFlightCtrl.Param.Byte[7];
688
                                FC.Error[3]                     |= FromFlightCtrl.Param.Byte[8];
688
                                FC.Error[3]                     |= FromFlightCtrl.Param.Byte[8];
689
                                FC.Error[4]                     |= FromFlightCtrl.Param.Byte[9];
689
                                FC.Error[4]                     |= FromFlightCtrl.Param.Byte[9];
690
                                Parameter.OrientationAngle = FromFlightCtrl.Param.Byte[10];
690
                                Parameter.OrientationAngle = FromFlightCtrl.Param.Byte[10];
-
 
691
                                Parameter.GlobalConfig3 = FromFlightCtrl.Param.Byte[11];
691
                                DebugOut.StatusGreen |= AMPEL_FC; // status of FC Present
692
                                DebugOut.StatusGreen |= AMPEL_FC; // status of FC Present
692
                                DebugOut.StatusGreen |= AMPEL_BL; // status of BL Present
693
                                DebugOut.StatusGreen |= AMPEL_BL; // status of BL Present
693
                                if(FC.Error[0] || FC.Error[1] || FC.Error[2] || FC.Error[3] || FC.Error[4]) DebugOut.StatusRed |= AMPEL_FC;
694
                                if(FC.Error[0] || FC.Error[1] || FC.Error[2] || FC.Error[3] || FC.Error[4]) DebugOut.StatusRed |= AMPEL_FC;
694
                                else DebugOut.StatusRed &= ~AMPEL_FC;
695
                                else DebugOut.StatusRed &= ~AMPEL_FC;
695
                                break;
696
                                break;
696
                        default:
697
                        default:
697
                                break;
698
                                break;
698
                }
699
                }
Line 699... Line 700...
699
 
700
 
700
 
701
/*
701
//+++++++++++++++++++++++++++++++++++++++++++++++++++
702
//+++++++++++++++++++++++++++++++++++++++++++++++++++
702
// Einkommentieren, falls der Flug simultert werden soll
703
// Einkommentieren, falls der Flug simultert werden soll
703
if(Parameter.User8 < 100) FC.StatusFlags = 0;
704
if(Parameter.User8 < 100) FC.StatusFlags = 0;
704
else
705
else
705
if(Parameter.User8 < 150) FC.StatusFlags = FC_STATUS_START;
706
if(Parameter.User8 < 150) FC.StatusFlags = FC_STATUS_START;
706
else FC.StatusFlags = FC_STATUS_FLY | FC_STATUS_MOTOR_RUN;
707
else FC.StatusFlags = FC_STATUS_FLY | FC_STATUS_MOTOR_RUN;
707
BL_MinOfMaxPWM = 255;
708
BL_MinOfMaxPWM = 255;
708
//+++++++++++++++++++++++++++++++++++++++++++++++++++
709
//+++++++++++++++++++++++++++++++++++++++++++++++++++
Line 709... Line 710...
709
 
710
*/
710
 
711
 
711
                // every time we got new data from the FC via SPI call the navigation routine
712
                // every time we got new data from the FC via SPI call the navigation routine
712
                // and update GPSStick that are returned to FC
713
                // and update GPSStick that are returned to FC