Rev 1955 | Rev 1961 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1955 | Rev 1960 | ||
---|---|---|---|
Line 83... | Line 83... | ||
83 | // disable interrupts global |
83 | // disable interrupts global |
84 | cli(); |
84 | cli(); |
Line 85... | Line 85... | ||
85 | 85 | ||
86 | // analyze hardware environment |
86 | // analyze hardware environment |
87 | CPUType = getCPUType(); |
87 | CPUType = getCPUType(); |
Line 88... | Line 88... | ||
88 | BoardRelease = getBoardRelease(); |
88 | boardRelease = getBoardRelease(); |
89 | 89 | ||
90 | // disable watchdog |
90 | // disable watchdog |
91 | MCUSR &= ~(1 << WDRF); |
91 | MCUSR &= ~(1 << WDRF); |
Line 126... | Line 126... | ||
126 | printf("p"); |
126 | printf("p"); |
127 | printf("\n\rSoftware: V%d.%d%c",VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH + 'a'); |
127 | printf("\n\rSoftware: V%d.%d%c",VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH + 'a'); |
128 | printf("\n\r==================================="); |
128 | printf("\n\r==================================="); |
Line 129... | Line 129... | ||
129 | 129 | ||
- | 130 | // Parameter Set handling |
|
130 | // Parameter Set handling |
131 | channelMap_readOrDefault(); |
Line 131... | Line 132... | ||
131 | ParamSet_Init(); |
132 | paramSet_readOrDefault(); |
132 | 133 | ||
133 | // Wait for a short time (otherwise the RC channel check won't work below) |
134 | // Wait for a short time (otherwise the RC channel check won't work below) |
Line 158... | Line 159... | ||
158 | 159 | ||
Line 159... | Line 160... | ||
159 | twi_diagnostics(); |
160 | twi_diagnostics(); |
Line 160... | Line -... | ||
160 | - | ||
161 | printf("\n\r==================================="); |
- | |
162 | - | ||
163 | /* |
- | |
164 | if(staticParams.GlobalConfig & CFG_HEIGHT_CONTROL) |
- | |
165 | { |
- | |
166 | printf("\n\rCalibrating air pressure sensor.."); |
- | |
167 | timer = SetDelay(1000); |
- | |
168 | SearchAirPressureOffset(); |
- | |
169 | while (!CheckDelay(timer)); |
- | |
170 | printf("OK\n\r"); |
- | |
171 | } |
161 | |
172 | */ |
162 | printf("\n\r==================================="); |
173 | 163 | ||
174 | #ifdef USE_NAVICTRL |
164 | #ifdef USE_NAVICTRL |
175 | printf("\n\rSupport for NaviCtrl"); |
165 | printf("\n\rSupport for NaviCtrl"); |
Line 203... | Line 193... | ||
203 | // RED_OFF; |
193 | // RED_OFF; |
Line 204... | Line 194... | ||
204 | 194 | ||
Line 205... | Line 195... | ||
205 | beep(2000); |
195 | beep(2000); |
206 | 196 | ||
207 | printf("\n\rControl: "); |
197 | printf("\n\rControl: "); |
208 | if (staticParams.GlobalConfig & CFG_HEADING_HOLD) |
198 | if (staticParams.bitConfig & CFG_HEADING_HOLD) |
Line 209... | Line 199... | ||
209 | printf("HeadingHold"); |
199 | printf("HeadingHold"); |
Line 246... | Line 236... | ||
246 | 236 | ||
247 | if (checkDelay(timer)) { |
237 | if (checkDelay(timer)) { |
248 | if (UBat <= UBAT_AT_5V) { |
238 | if (UBat <= UBAT_AT_5V) { |
249 | // Do nothing. The voltage on the input side of the regulator is <5V; |
239 | // Do nothing. The voltage on the input side of the regulator is <5V; |
250 | // we must be running off USB power. Keep it quiet. |
240 | // we must be running off USB power. Keep it quiet. |
251 | } else if (UBat < staticParams.LowVoltageWarning) { |
241 | } else if (UBat < staticParams.batteryVoltageWarning) { |
252 | beepBatteryAlarm(); |
242 | beepBatteryAlarm(); |
Line 253... | Line 243... | ||
253 | } |
243 | } |
254 | 244 |