Rev 2331 | Rev 2337 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2331 | Rev 2336 | ||
---|---|---|---|
Line 167... | Line 167... | ||
167 | EE_Parameter.Hoehe_ACC_Wirkung = 0; // Wert : 0-247 |
167 | EE_Parameter.Hoehe_ACC_Wirkung = 0; // Wert : 0-247 |
168 | EE_Parameter.Hoehe_HoverBand = 8; // Wert : 0-247 |
168 | EE_Parameter.Hoehe_HoverBand = 8; // Wert : 0-247 |
169 | EE_Parameter.Hoehe_GPS_Z = 20; // Wert : 0-247 |
169 | EE_Parameter.Hoehe_GPS_Z = 20; // Wert : 0-247 |
170 | } |
170 | } |
Line 171... | Line 171... | ||
171 | 171 | ||
172 | EE_Parameter.Hoehe_StickNeutralPoint = 0;// Wert : 0-247 (0 = Hover-Estimation) |
172 | EE_Parameter.Hoehe_StickNeutralPoint = 127;// Wert : 0-247 (0 = Hover-Estimation) |
Line 173... | Line 173... | ||
173 | EE_Parameter.Hoehe_Verstaerkung = 15; // Wert : 0-50 (15 -> ca. +/- 5m/sek bei Stick-Voll-Ausschlag) |
173 | EE_Parameter.Hoehe_Verstaerkung = 15; // Wert : 0-50 (15 -> ca. +/- 5m/sek bei Stick-Voll-Ausschlag) |
174 | 174 | ||
175 | EE_Parameter.UserParam1 = 0; // zur freien Verwendung |
175 | EE_Parameter.UserParam1 = 0; // zur freien Verwendung |
Line 565... | Line 565... | ||
565 | /* Initialize EEPROM Parameter Sets */ |
565 | /* Initialize EEPROM Parameter Sets */ |
566 | /***************************************************/ |
566 | /***************************************************/ |
567 | void ParamSet_Init(void) |
567 | void ParamSet_Init(void) |
568 | { |
568 | { |
569 | uint8_t channel_backup = 0, bad_params = 0, ee_default = 0,i; |
569 | uint8_t channel_backup = 0, bad_params = 0, ee_default = 0,i; |
- | 570 | if(GetParamByte(PID_EE_REVISION) == EEPARAM_REVISION - 50) SetParamByte(PID_EE_REVISION,EEPARAM_REVISION); // remove the EEPARAM_REVISION_SUB from Version 0.90g |
|
- | 571 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
|
- | 572 | if(PlatinenVersion != GetParamByte(PID_HARDWARE_VERSION)) |
|
570 | 573 | { |
|
- | 574 | if(PlatinenVersion == 22 && GetParamByte(PID_HARDWARE_VERSION) == 21 && !(PIND & 0x10)) SetParamByte(PID_EE_REVISION,0); // reset the Settings if the Version changed to V2.2 |
|
- | 575 | SetParamByte(PID_HARDWARE_VERSION,PlatinenVersion); // Remember the Version number |
|
- | 576 | wdt_enable(WDTO_15MS); // Reset-Commando |
|
- | 577 | printf("\n\r--> Hardware Version Byte Changed <--"); |
|
- | 578 | while(1); |
|
- | 579 | } |
|
- | 580 | #endif |
|
571 | if((EEPARAM_REVISION) != GetParamByte(PID_EE_REVISION)) |
581 | if((EEPARAM_REVISION) != GetParamByte(PID_EE_REVISION)) |
572 | { |
582 | { |
573 | ee_default = 1; // software update or forced by mktool |
583 | ee_default = 1; // software update or forced by mktool |
574 | } |
584 | } |
575 | // 1st check for a valid channel backup in eeprom |
585 | // 1st check for a valid channel backup in eeprom |