Rev 565 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 565 | Rev 566 | ||
---|---|---|---|
Line 603... | Line 603... | ||
603 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK],0xff); // Werte löschen |
603 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK],0xff); // Werte löschen |
604 | MotorenEin = 0; |
604 | MotorenEin = 0; |
605 | delay_neutral = 0; |
605 | delay_neutral = 0; |
606 | modell_fliegt = 0; |
606 | modell_fliegt = 0; |
607 | SetNeutral(); |
607 | SetNeutral(); |
- | 608 | if (ACC_FIXED > 0) |
|
- | 609 | { |
|
- | 610 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK],ACC_NICK_NEUTRAL / 256); // ACC-NeutralWerte speichern |
|
- | 611 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK+1],ACC_NICK_NEUTRAL % 256); // ACC-NeutralWerte speichern |
|
- | 612 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL],ACC_ROLL_NEUTRAL / 256); |
|
- | 613 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL+1],ACC_ROLL_NEUTRAL % 256); |
|
- | 614 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z],(int)ACC_Z_NEUTRAL / 256); |
|
- | 615 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z+1],(int)ACC_Z_NEUTRAL % 256); |
|
- | 616 | } |
|
- | 617 | else |
|
- | 618 | { |
|
608 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK],NeutralAccX / 256); // ACC-NeutralWerte speichern |
619 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK],NeutralAccX / 256); // ACC-NeutralWerte speichern |
609 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK+1],NeutralAccX % 256); // ACC-NeutralWerte speichern |
620 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_NICK+1],NeutralAccX % 256); // ACC-NeutralWerte speichern |
610 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL],NeutralAccY / 256); |
621 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL],NeutralAccY / 256); |
611 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL+1],NeutralAccY % 256); |
622 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_ROLL+1],NeutralAccY % 256); |
612 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z],(int)NeutralAccZ / 256); |
623 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z],(int)NeutralAccZ / 256); |
613 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z+1],(int)NeutralAccZ % 256); |
624 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACC_Z+1],(int)NeutralAccZ % 256); |
- | 625 | } |
|
614 | Piep(GetActiveParamSetNumber()); |
626 | Piep(GetActiveParamSetNumber()); |
615 | } |
627 | } |
616 | } |
628 | } |
Line 617... | Line 629... | ||
617 | 629 | ||
Line 1104... | Line 1116... | ||
1104 | { |
1116 | { |
1105 | gps_cmd = GPS_CMD_STOP; |
1117 | gps_cmd = GPS_CMD_STOP; |
1106 | n= GPS_CRTL(gps_cmd); //GPS Lageregelung beenden |
1118 | n= GPS_CRTL(gps_cmd); //GPS Lageregelung beenden |
1107 | } |
1119 | } |
1108 | } |
1120 | } |
1109 | if (gps_state != GPS_CRTL_IDLE) if (TimerWerteausgabe == 10) LED_J16_OFF; //led im GPS Mode schnell blinken lassen |
1121 | if (gps_state != GPS_CRTL_IDLE) if (TimerWerteausgabe == 12) LED_J16_OFF; //led im GPS Mode schnell blinken lassen |
Line 1110... | Line 1122... | ||
1110 | 1122 | ||
1111 | 1123 | ||
1112 | // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1124 | // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |