Rev 2427 | Rev 2439 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2427 | Rev 2437 | ||
---|---|---|---|
Line 245... | Line 245... | ||
245 | Motor[i].State &= ~MOTOR_STATE_ERROR_MASK; // clear error counter |
245 | Motor[i].State &= ~MOTOR_STATE_ERROR_MASK; // clear error counter |
246 | } |
246 | } |
247 | PrintLine();// ("\n\r==================================="); |
247 | PrintLine();// ("\n\r==================================="); |
248 | if(RequiredMotors < FoundMotors) VersionInfo.HardwareError[1] |= FC_ERROR1_MIXER; |
248 | if(RequiredMotors < FoundMotors) VersionInfo.HardwareError[1] |= FC_ERROR1_MIXER; |
249 | if(RequiredMotors > 8) Max_I2C_Packets = 8; else Max_I2C_Packets = RequiredMotors; |
249 | if(RequiredMotors > 8) Max_I2C_Packets = 8; else Max_I2C_Packets = RequiredMotors; |
- | 250 | #else |
|
- | 251 | printf("\n\r--> REDUNDANT SLAVE <---"); |
|
- | 252 | #endif |
|
- | 253 | ||
- | 254 | #ifdef REDUNDANT_FC_MASTER |
|
- | 255 | printf("\n\r--> REDUNDANT MASTER <---"); |
|
- | 256 | #endif |
|
- | 257 | ||
250 | // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
258 | // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
251 | // Calibrating altitude sensor |
259 | // Calibrating altitude sensor |
252 | // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
260 | // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
253 | #endif |
- | |
254 | //if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
261 | //if(EE_Parameter.GlobalConfig & CFG_HOEHENREGELUNG) |
255 | { |
262 | { |
256 | printf("\n\rCalibrating pressure sensor.."); |
263 | printf("\n\rCalibrating pressure sensor.."); |
257 | timer = SetDelay(1000); |
264 | timer = SetDelay(1000); |
258 | SucheLuftruckOffset(); |
265 | SucheLuftruckOffset(); |
Line 454... | Line 461... | ||
454 | // +++++++++++++++++++++++++++++++++ |
461 | // +++++++++++++++++++++++++++++++++ |
455 | // Sekundentakt |
462 | // Sekundentakt |
456 | if(++second == 49) |
463 | if(++second == 49) |
457 | { |
464 | { |
458 | second = 0; |
465 | second = 0; |
- | 466 | /* |
|
- | 467 | DebugOut.Analog[16] -= DebugOut.Analog[16] / 128; |
|
- | 468 | DebugOut.Analog[17] -= DebugOut.Analog[17] / 128; |
|
- | 469 | ||
- | 470 | if(DebugOut.Analog[16] > 3000) {AdNeutralNick++; DebugOut.Analog[16] = 0;} |
|
- | 471 | else |
|
- | 472 | if(DebugOut.Analog[16] < -3000) {AdNeutralNick--; DebugOut.Analog[16] = 0;}; |
|
- | 473 | ||
- | 474 | if(DebugOut.Analog[17] > 3000) {AdNeutralRoll++; DebugOut.Analog[17] = 0;} |
|
- | 475 | else |
|
- | 476 | if(DebugOut.Analog[17] < -3000) {AdNeutralRoll--; DebugOut.Analog[17] = 0;}; |
|
- | 477 | */ |
|
- | 478 | ||
459 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
479 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
460 | if(ShowSettingNameTime) ShowSettingNameTime--; |
480 | if(ShowSettingNameTime) ShowSettingNameTime--; |
461 | #endif |
481 | #endif |
462 | if(FC_StatusFlags & FC_STATUS_FLY) FlugSekunden++; |
482 | if(FC_StatusFlags & FC_STATUS_FLY) FlugSekunden++; |
463 | else timer2 = 1450; // 0,5 Minuten aufrunden |
483 | else timer2 = 1450; // 0,5 Minuten aufrunden |