Subversion Repositories FlightCtrl

Rev

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

Rev 1691 Rev 1701
Line 193... Line 193...
193
        for(i=0; i < MAX_MOTORS; i++)
193
        for(i=0; i < MAX_MOTORS; i++)
194
        {
194
        {
195
                if(!(Motor[i].State & MOTOR_STATE_PRESENT_MASK) && Mixer.Motor[i][0] > 0)
195
                if(!(Motor[i].State & MOTOR_STATE_PRESENT_MASK) && Mixer.Motor[i][0] > 0)
196
                {
196
                {
197
                        printf("\n\r\n\r!! MISSING BL-CTRL: %d !!",i+1);
197
                        printf("\n\r\n\r!! MISSING BL-CTRL: %d !!",i+1);
198
                        ServoActive = 1; // just in case the FC would be used as camera-stabilizer
198
                        ServoActive = 2; // just in case the FC would be used as camera-stabilizer
199
                }
199
                }
200
                Motor[i].State &= ~MOTOR_STATE_ERROR_MASK; // clear error counter
200
                Motor[i].State &= ~MOTOR_STATE_ERROR_MASK; // clear error counter
201
        }
201
        }
202
        printf("\n\r===================================");
202
        printf("\n\r===================================");
Line 218... Line 218...
218
    ExternControl.Digital[0] = 0x55;
218
    ExternControl.Digital[0] = 0x55;
Line 219... Line 219...
219
 
219
 
220
 
220
 
221
        FlugMinuten = (unsigned int)GetParamByte(PID_FLIGHT_MINUTES) * 256 + (unsigned int)GetParamByte(PID_FLIGHT_MINUTES + 1);
-
 
Line 222... Line 221...
222
        FlugMinutenGesamt = (unsigned int)GetParamByte(PID_FLIGHT_MINUTES_TOTAL) * 256 + (unsigned int)GetParamByte(PID_FLIGHT_MINUTES_TOTAL + 1);
221
        FlugMinuten = (unsigned int)GetParamByte(PID_FLIGHT_MINUTES) * 256 + (unsigned int)GetParamByte(PID_FLIGHT_MINUTES + 1);
223
//      FlugMinutenGesamt = GetParamWord(PID_FLIGHT_MINUTES_TOTAL);
222
        FlugMinutenGesamt = (unsigned int)GetParamByte(PID_FLIGHT_MINUTES_TOTAL) * 256 + (unsigned int)GetParamByte(PID_FLIGHT_MINUTES_TOTAL + 1);
224
 
223
 
225
        if( (FlugMinutenGesamt == 0xFFFF) || (FlugMinuten == 0xFFFF) )
224
        if( (FlugMinutenGesamt == 0xFFFF) || (FlugMinuten == 0xFFFF) )