Rev 373 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 373 | Rev 378 | ||
---|---|---|---|
Line 137... | Line 137... | ||
137 | if(i==2) DefaultKonstanten2(); |
137 | if(i==2) DefaultKonstanten2(); |
138 | WriteParameterSet(i, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
138 | WriteParameterSet(i, (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
139 | } |
139 | } |
140 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], 1); |
140 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_ACTIVE_SET], 1); |
141 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], 60); |
141 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_VALID], 60); |
- | 142 | ||
- | 143 | calib_acc(); |
|
142 | } |
144 | } |
Line 143... | Line 145... | ||
143 | 145 | ||
144 | ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
146 | ReadParameterSet(GetActiveParamSetNumber(), (unsigned char *) &EE_Parameter.Kanalbelegung[0], sizeof(struct mk_param_struct)); |
Line 150... | Line 152... | ||
150 | 152 | ||
151 | //Kompass kalibrieren? |
153 | //Kompass kalibrieren? |
152 | if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 100) |
154 | if(PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] > 100 && PPM_in[EE_Parameter.Kanalbelegung[K_GIER]] > 100) |
153 | { |
155 | { |
154 | printf("\n\rKalibriere Kompass"); |
156 | printf("\n\rKalibriere Kompass"); |
155 | if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) calib_MM3(); |
157 | calib_MM3(); |
Line 156... | Line 158... | ||
156 | } |
158 | } |
157 | 159 | ||
158 | //Neutrallage kalibrieren? |
160 | //Neutrallage kalibrieren? |