Rev 2386 | Rev 2390 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2386 | Rev 2388 | ||
---|---|---|---|
Line 130... | Line 130... | ||
130 | "No SD-Card \0", // 26 |
130 | "No SD-Card \0", // 26 |
131 | "SD-Logging error\0", // 27 |
131 | "SD-Logging error\0", // 27 |
132 | "Flying range! \0", // 28 |
132 | "Flying range! \0", // 28 |
133 | "Max Altitude! \0", // 29 |
133 | "Max Altitude! \0", // 29 |
134 | "No GPS fix \0", // 30 |
134 | "No GPS fix \0", // 30 |
135 | "compass not cal.\0" // 31 |
135 | "compass not cal.\0", // 31 |
- | 136 | "BL-Selftest \0" // 32 |
|
136 | }; |
137 | }; |
Line 137... | Line 138... | ||
137 | 138 | ||
138 | 139 | ||
139 | const char PROGMEM HOTT_ERROR[MAX_ERR_NUMBER][2] = |
140 | const char PROGMEM HOTT_ERROR[MAX_ERR_NUMBER][2] = |
140 | { // 1 -> only in flight 0 -> also on ground |
141 | { // 1 -> only in flight 0 -> also on ground |
141 | //0123456789123456 |
142 | //0123456789123456 |
142 | {0,0},// "No Error \0", // 0 |
143 | {0,0},// "No Error \0", // 0 |
143 | {SPEAK_ERROR,0},// "Not compatible \0", // 1 |
144 | {SPEAK_ERROR,0}, // "Not compatible \0", // 1 |
144 | {SPEAK_ERROR,0},// "MK3Mag not compa\0", // 2 |
145 | {SPEAK_ERROR,0}, // "MK3Mag not compa\0", // 2 |
145 | {SPEAK_ERR_NAVI,1},// "No FC communicat\0", // 3 |
146 | {SPEAK_ERR_NAVI,1}, // "No FC communicat\0", // 3 |
146 | {SPEAK_ERR_COMPASS,1},// "MK3Mag communica\0", // 4 |
147 | {SPEAK_ERR_COMPASS,1}, // "MK3Mag communica\0", // 4 |
147 | {SPEAK_ERR_GPS,0},// "GPS communicatio\0", // 5 |
148 | {SPEAK_ERR_GPS,0}, // "GPS communicatio\0", // 5 |
148 | {SPEAK_ERR_COMPASS,1},// "compass value \0", // 6 |
149 | {SPEAK_ERR_COMPASS,1}, // "compass value \0", // 6 |
149 | {SPEAK_ERR_RECEICER,0},// "RC Signal lost \0", // 7 |
150 | {SPEAK_ERR_RECEICER,0},// "RC Signal lost \0", // 7 |
150 | {SPEAK_ERR_NAVI,0},// "FC spi rx error \0", // 8 |
151 | {SPEAK_ERR_NAVI,0}, // "FC spi rx error \0", // 8 |
151 | {SPEAK_ERR_NAVI,0},// "No NC communicat\0", // 9 |
152 | {SPEAK_ERR_NAVI,0}, // "No NC communicat\0", // 9 |
152 | {SPEAK_ERR_SENSOR,0},// "FC Nick Gyro \0", // 10 |
153 | {SPEAK_ERR_SENSOR,0}, // "FC Nick Gyro \0", // 10 |
153 | {SPEAK_ERR_SENSOR,0},// "FC Roll Gyro \0", // 11 |
154 | {SPEAK_ERR_SENSOR,0}, // "FC Roll Gyro \0", // 11 |
154 | {SPEAK_ERR_SENSOR,0},// "FC Yaw Gyro \0", // 12 |
155 | {SPEAK_ERR_SENSOR,0}, // "FC Yaw Gyro \0", // 12 |
155 | {SPEAK_ERR_SENSOR,0},// "FC Nick ACC \0", // 13 |
156 | {SPEAK_ERR_SENSOR,0}, // "FC Nick ACC \0", // 13 |
156 | {SPEAK_ERR_SENSOR,0},// "FC Roll ACC \0", // 14 |
157 | {SPEAK_ERR_SENSOR,0}, // "FC Roll ACC \0", // 14 |
157 | {SPEAK_ERR_SENSOR,0},// "FC Z-ACC \0", // 15 |
158 | {SPEAK_ERR_SENSOR,0}, // "FC Z-ACC \0", // 15 |
158 | {SPEAK_ERR_SENSOR,0},// "Pressure sensor \0", // 16 |
159 | {SPEAK_ERR_SENSOR,0}, // "Pressure sensor \0", // 16 |
159 | {SPEAK_ERR_DATABUS,1},// "I2C FC->BL-Ctrl \0", // 17 |
160 | {SPEAK_ERR_DATABUS,1}, // "I2C FC->BL-Ctrl \0", // 17 |
160 | {SPEAK_ERR_DATABUS,1},// "Bl Missing \0", // 18 |
161 | {SPEAK_ERR_DATABUS,1}, // "Bl Missing \0", // 18 |
161 | {SPEAK_ERROR,0},// "Mixer Error \0", // 19 |
162 | {SPEAK_ERROR,0}, // "Mixer Error \0", // 19 |
162 | {SPEAK_CF_OFF,1},// "Carefree Error \0", // 20 |
163 | {SPEAK_CF_OFF,1}, // "Carefree Error \0", // 20 |
163 | {SPEAK_GPS_FIX,1},// "GPS Fix lost \0", // 21 |
164 | {SPEAK_GPS_FIX,1}, // "GPS Fix lost \0", // 21 |
164 | {SPEAK_ERR_COMPASS,0},// "Magnet Error \0", // 22 |
165 | {SPEAK_ERR_COMPASS,0}, // "Magnet Error \0", // 22 |
165 | {SPEAK_ERR_MOTOR,1},// "Motor restart \0", // 23 |
166 | {SPEAK_ERR_MOTOR,1}, // "Motor restart \0", // 23 |
166 | {SPEAK_MAX_TEMPERAT,1},// "BL Limitation \0", // 24 |
167 | {SPEAK_MAX_TEMPERAT,1},// "BL Limitation \0", // 24 |
167 | {SPEAK_MAX_RANGE,1},// "GPS Range \0", // 25 |
168 | {SPEAK_MAX_RANGE,1}, // "GPS Range \0", // 25 |
168 | {SPEAK_ERROR,1},// "No SD-Card \0", // 26 |
169 | {SPEAK_ERROR,1}, // "No SD-Card \0", // 26 |
169 | {SPEAK_ERROR,1},// "SD-Logging error\0", // 27 |
170 | {SPEAK_ERROR,1}, // "SD-Logging error\0", // 27 |
170 | {SPEAK_MAX_RANGE,1},// "Flying range! \0", // 28 |
171 | {SPEAK_MAX_RANGE,1}, // "Flying range! \0", // 28 |
- | 172 | {SPEAK_MAX_ALTITUD,1}, // "Max Altitude! \0" // 29 |
|
- | 173 | {SPEAK_GPS_FIX,1}, // "No GPS fix \0" // 30 |
|
171 | {SPEAK_MAX_ALTITUD,1},// "Max Altitude! \0" // 29 |
174 | {SPEAK_ERR_CALIBARTION,0},// "compass not cal." // 31 |
Line 172... | Line 175... | ||
172 | {SPEAK_GPS_FIX,1}// "no GPS Fix, // 30 |
175 | {SPEAK_ERR_MOTOR,0} // "BL-Selftest \0" // 32 |
173 | }; |
176 | }; |
Line 206... | Line 209... | ||
206 | static int repeat; |
209 | static int repeat; |
207 | //if(Parameter_UserParam1) return(Parameter_UserParam1); |
210 | //if(Parameter_UserParam1) return(Parameter_UserParam1); |
208 | ToNC_SpeakHoTT = SpeakHoTT; |
211 | ToNC_SpeakHoTT = SpeakHoTT; |
209 | if(FC_StatusFlags & FC_STATUS_LOWBAT) status = VOICE_MINIMALE_EINGANSSPANNUNG; |
212 | if(FC_StatusFlags & FC_STATUS_LOWBAT) status = VOICE_MINIMALE_EINGANSSPANNUNG; |
210 | else |
213 | else |
211 | if(NC_ErrorCode) // Fehlercodes |
214 | if(NC_ErrorCode && NC_ErrorCode+1 < MAX_ERR_NUMBER) // Fehlercodes |
212 | { |
215 | { |
213 | if(MotorenEin || !pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][1])) status = pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][0]); |
216 | if(MotorenEin || !pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][1])) status = pgm_read_byte(&HOTT_ERROR[NC_ErrorCode][0]); |
214 | } |
217 | } |
215 | if(!status) // Sprachansagen |
218 | if(!status) // Sprachansagen |
216 | { |
219 | { |
Line 338... | Line 341... | ||
338 | { |
341 | { |
339 | VarioPacket.Text[0] = NC_ErrorCode/10 + '0'; |
342 | VarioPacket.Text[0] = NC_ErrorCode/10 + '0'; |
340 | VarioPacket.Text[1] = NC_ErrorCode%10 + '0'; |
343 | VarioPacket.Text[1] = NC_ErrorCode%10 + '0'; |
341 | VarioPacket.Text[2] = ':'; |
344 | VarioPacket.Text[2] = ':'; |
342 | for(i=0; i<16;i++) VarioPacket.Text[i+3] = pgm_read_byte(&NC_ERROR_TEXT[NC_ErrorCode][i]); |
345 | for(i=0; i<16;i++) VarioPacket.Text[i+3] = pgm_read_byte(&NC_ERROR_TEXT[NC_ErrorCode][i]); |
- | 346 | VarioPacket.Text[19] = ' '; |
|
- | 347 | VarioPacket.Text[20] = ' '; |
|
343 | } |
348 | } |
344 | else |
349 | else |
345 | if(FC_StatusFlags & FC_STATUS_LOWBAT) for(i=0; i<21;i++) VarioPacket.Text[i] = pgm_read_byte(&UNDERVOLTAGE[i]); // no Error |
350 | if(FC_StatusFlags & FC_STATUS_LOWBAT) for(i=0; i<21;i++) VarioPacket.Text[i] = pgm_read_byte(&UNDERVOLTAGE[i]); // no Error |
346 | else |
351 | else |
347 | if(ShowSettingNameTime) // no Error |
352 | if(ShowSettingNameTime) // no Error |