Rev 1937 | Rev 1940 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1937 | Rev 1939 | ||
---|---|---|---|
Line 108... | Line 108... | ||
108 | if(page == 0) |
108 | if(page == 0) |
109 | switch(line++) |
109 | switch(line++) |
110 | { |
110 | { |
111 | case 0: |
111 | case 0: |
112 | if(FC_StatusFlags & FC_STATUS_LOWBAT) |
112 | if(FC_StatusFlags & FC_STATUS_LOWBAT) |
- | 113 | HoTT_printfxy_BLINK(0,0," %2i.%1iV ",UBat/10, UBat%10) |
|
- | 114 | else |
|
- | 115 | HoTT_printfxy(0,0," %2i.%1iV ",UBat/10, UBat%10) |
|
- | 116 | ||
- | 117 | if(Parameter_GlobalConfig & CFG_HOEHENREGELUNG) |
|
- | 118 | { |
|
- | 119 | if(HoehenReglerAktiv) HoTT_printfxy_INV(10,0,"ALT:%4im %c", (int16_t)(HoehenWert/100),VarioCharacter) |
|
- | 120 | else HoTT_printfxy(10,0,"ALT:%4im ", (int16_t)(HoehenWert/100)) |
|
- | 121 | } |
|
- | 122 | else HoTT_printfxy(10,0,"ALT:---- "); |
|
- | 123 | break; |
|
- | 124 | case 1: |
|
- | 125 | if(FC_StatusFlags & FC_STATUS_LOWBAT) |
|
- | 126 | HoTT_printfxy_BLINK(0,1," %2i:%02i ",FlugSekunden/60,FlugSekunden%60) |
|
- | 127 | else HoTT_printfxy(0,1," %2i:%02i ",FlugSekunden/60,FlugSekunden%60); |
|
- | 128 | HoTT_printfxy(10,1,"DIR: %3d%c",KompassValue, HoTT_GRAD); |
|
- | 129 | if(FC_StatusFlags2 & FC_STATUS2_CAREFREE) HoTT_printfxy(20,1,"C") else HoTT_printfxy(20,1," "); |
|
- | 130 | break; |
|
- | 131 | case 2: |
|
- | 132 | if(FC_StatusFlags & FC_STATUS_LOWBAT) |
|
- | 133 | HoTT_printfxy_BLINK(0,2," %5i ",Capacity.UsedCapacity) |
|
- | 134 | else HoTT_printfxy(0,2," %5i ",Capacity.UsedCapacity); |
|
- | 135 | HoTT_printfxy(12,2,"I:%2i.%1iA",Capacity.ActualCurrent/10, Capacity.ActualCurrent%10); |
|
- | 136 | break; |
|
- | 137 | case 3: |
|
- | 138 | HoTT_printfxy(9,0,"I"); |
|
- | 139 | HoTT_printfxy(9,1,"I"); |
|
- | 140 | HoTT_printfxy(9,2,"I"); |
|
- | 141 | HoTT_printfxy(0,3,"---------+-----------"); |
|
- | 142 | HoTT_printfxy(9,4,"I"); |
|
- | 143 | HoTT_printfxy(9,5,"I"); |
|
- | 144 | HoTT_printfxy(0,6,"---------------------"); |
|
- | 145 | break; |
|
- | 146 | case 4: |
|
- | 147 | if(NaviDataOkay) |
|
- | 148 | { |
|
- | 149 | HoTT_printfxy(0,4,"SAT:%2d ",GPSInfo.NumOfSats); |
|
- | 150 | HoTT_printfxy(10,4,"DIST:%3dm",GPSInfo.HomeDistance/10); |
|
- | 151 | switch (GPSInfo.SatFix) |
|
- | 152 | { |
|
- | 153 | case SATFIX_3D: |
|
- | 154 | if(GPSInfo.Flags & FLAG_DIFFSOLN) HoTT_printfxy(7,4,"D ") |
|
- | 155 | else HoTT_printfxy(7,4,"3D"); |
|
- | 156 | break; |
|
- | 157 | default: |
|
- | 158 | HoTT_printfxy(7,4,"! "); |
|
- | 159 | break; |
|
- | 160 | } |
|
- | 161 | } |
|
- | 162 | else |
|
- | 163 | { //012345678901234567890 |
|
- | 164 | HoTT_printfxy(0,4,"No Navi "); |
|
- | 165 | } |
|
- | 166 | break; |
|
- | 167 | case 5: |
|
- | 168 | if(NaviDataOkay) |
|
- | 169 | { |
|
- | 170 | HoTT_printfxy(4,5,"%2um/s",GPSInfo.Speed,GPSInfo.NumOfSats); |
|
- | 171 | HoTT_printfxy(12,5,"HM:%3d%c %c", GPSInfo.HomeBearing, HoTT_GRAD, NC_GPS_ModeCharacter); |
|
- | 172 | } |
|
- | 173 | else HoTT_printfxy(0,5," | "); |
|
- | 174 | break; |
|
- | 175 | case 6: |
|
- | 176 | /* |
|
- | 177 | if(RequiredMotors == 4) Hott_ClearLine(6); |
|
- | 178 | else |
|
- | 179 | if(RequiredMotors == 6) HoTT_printfxy(0,6,"%3i %3i%cC ", Motor[4].Temperature, Motor[5].Temperature,HoTT_GRAD) |
|
- | 180 | else |
|
- | 181 | if(RequiredMotors > 6) HoTT_printfxy(0,6,"%3i %3i %3i %3i%cC", Motor[4].Temperature, Motor[5].Temperature, Motor[6].Temperature, Motor[7].Temperature,HoTT_GRAD); |
|
- | 182 | //HoTT_printfxy(15,6,"%KEY:%02x",HottKeyboard); |
|
- | 183 | */ |
|
- | 184 | break; |
|
- | 185 | case 7: if(NC_ErrorCode) |
|
- | 186 | { |
|
- | 187 | if(HoTTBlink && NC_ErrorCode < MAX_ERR_NUMBER) |
|
- | 188 | { |
|
- | 189 | Hott_ClearLine(7); |
|
- | 190 | HoTT_printfxy_INV(0,7,"ERR: %2d !",NC_ErrorCode); |
|
- | 191 | } |
|
- | 192 | else |
|
- | 193 | { |
|
- | 194 | HoTT_printfxy(0,7,"ERR: "); _printf_P(&LIBFC_HoTT_Putchar, NC_ERROR_TEXT[NC_ErrorCode] , 0);}; |
|
- | 195 | } |
|
- | 196 | else HoTT_printfxy(0,7," www.MikroKopter.de "); |
|
- | 197 | break; |
|
- | 198 | case 8: ASCIIPacket.WarnBeep = HoTT_Waring(); |
|
- | 199 | // ASCIIPacket.WarnBeep = Parameter_UserParam1; |
|
- | 200 | case 9: |
|
- | 201 | case 10: |
|
- | 202 | case 11: |
|
- | 203 | case 12: |
|
- | 204 | case 13: |
|
- | 205 | case 14: |
|
- | 206 | case 15: |
|
- | 207 | case 16: |
|
- | 208 | if(HottKeyboard == 8) { LIBFC_HoTT_Clear(); page = 1; line = 0;}; |
|
- | 209 | HottKeyboard = 0; |
|
- | 210 | break; |
|
- | 211 | default: line = 0; |
|
- | 212 | break; |
|
- | 213 | } |
|
- | 214 | else |
|
- | 215 | if(page == 1) |
|
- | 216 | switch(line++) |
|
- | 217 | { |
|
- | 218 | case 0: |
|
- | 219 | if(FC_StatusFlags & FC_STATUS_LOWBAT) |
|
113 | HoTT_printfxy_BLINK(0,0," %2i:%02i %2i.%1iV %4imAh",FlugSekunden/60,FlugSekunden%60,UBat/10, UBat%10,Capacity.UsedCapacity) |
220 | HoTT_printfxy_BLINK(0,0," %2i:%02i %2i.%1iV %4imAh",FlugSekunden/60,FlugSekunden%60,UBat/10, UBat%10,Capacity.UsedCapacity) |
114 | else HoTT_printfxy(0,0," %2i:%02i %2i.%1iV %4imAh",FlugSekunden/60,FlugSekunden%60,UBat/10, UBat%10,Capacity.UsedCapacity); |
221 | else HoTT_printfxy(0,0," %2i:%02i %2i.%1iV %4imAh",FlugSekunden/60,FlugSekunden%60,UBat/10, UBat%10,Capacity.UsedCapacity); |
115 | break; |
222 | break; |
116 | case 1: |
223 | case 1: |
117 | HoTT_printfxy(0,1,"DIR:%3d%c",KompassValue, HoTT_GRAD); |
224 | HoTT_printfxy(0,1,"DIR:%3d%c",KompassValue, HoTT_GRAD); |
Line 194... | Line 301... | ||
194 | case 12: |
301 | case 12: |
195 | case 13: |
302 | case 13: |
196 | case 14: |
303 | case 14: |
197 | case 15: |
304 | case 15: |
198 | case 16: |
305 | case 16: |
199 | if(HottKeyboard == 8) { LIBFC_HoTT_Clear(); page = 1; line = 0;}; |
306 | if(HottKeyboard == 8) { LIBFC_HoTT_Clear(); page = 2; line = 0;}; |
- | 307 | if(HottKeyboard == 1) { LIBFC_HoTT_Clear(); page = 0; line = 0;}; |
|
200 | HottKeyboard = 0; |
308 | HottKeyboard = 0; |
201 | break; |
309 | break; |
202 | default: line = 0; |
310 | default: line = 0; |
203 | break; |
311 | break; |
204 | } |
312 | } |
205 | else |
313 | else |
206 | if(page == 1) |
314 | if(page == 2) |
207 | switch(line++) |
315 | switch(line++) |
208 | { |
316 | { |
209 | case 0: |
317 | case 0: |
210 | HoTT_printfxy_INV(0,0,"Setting:%u %s ",GetActiveParamSet(),EE_Parameter.Name); |
318 | HoTT_printfxy_INV(0,0,"Setting:%u %s ",GetActiveParamSet(),EE_Parameter.Name); |
211 | break; |
319 | break; |
Line 273... | Line 381... | ||
273 | case 12: |
381 | case 12: |
274 | case 13: |
382 | case 13: |
275 | case 14: |
383 | case 14: |
276 | case 15: |
384 | case 15: |
277 | case 16: |
385 | case 16: |
278 | if(HottKeyboard == 1) { LIBFC_HoTT_Clear(); page = 0; line = 0;}; |
386 | if(HottKeyboard == 1) { LIBFC_HoTT_Clear(); page = 1; line = 0;}; |
279 | HottKeyboard = 0; |
387 | HottKeyboard = 0; |
280 | break; |
388 | break; |
281 | default: line = 0; |
389 | default: line = 0; |
282 | break; |
390 | break; |
283 | } |
391 | } |