Rev 2369 | Rev 2373 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2369 | Rev 2370 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | #include "eeprom.h" |
54 | #include "eeprom.h" |
Line 55... | Line 55... | ||
55 | 55 | ||
56 | char DisplayBuff[80]; |
56 | char DisplayBuff[80]; |
Line 57... | Line 57... | ||
57 | unsigned char DispPtr = 0; |
57 | unsigned char DispPtr = 0; |
58 | 58 | ||
59 | unsigned char MaxMenue = 16; |
59 | unsigned char MaxMenue = 17; |
Line 60... | Line 60... | ||
60 | unsigned char MenuePunkt = 0; |
60 | unsigned char MenuePunkt = 0; |
61 | unsigned char RemoteKeys = 0; |
61 | unsigned char RemoteKeys = 0; |
Line 240... | Line 240... | ||
240 | { |
240 | { |
241 | LCD_printfxy(0,i+1,"%3d %3d %3d %3d ",Motor[i*4].Temperature,Motor[i*4+1].Temperature,Motor[i*4+2].Temperature,Motor[i*4+3].Temperature); |
241 | LCD_printfxy(0,i+1,"%3d %3d %3d %3d ",Motor[i*4].Temperature,Motor[i*4+1].Temperature,Motor[i*4+2].Temperature,Motor[i*4+3].Temperature); |
242 | // if(4 + i * 4 >= RequiredMotors) break; |
242 | // if(4 + i * 4 >= RequiredMotors) break; |
243 | } |
243 | } |
244 | break; |
244 | break; |
- | 245 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
|
245 | case 15: |
246 | case 15: |
- | 247 | LCD_printfxy(0,0,"BL Current" ); |
|
- | 248 | LCD_printfxy(11,3,"(in 0.1A)" ); |
|
- | 249 | for(i=0;i<3;i++) |
|
- | 250 | { |
|
- | 251 | LCD_printfxy(0,i+1,"%3d %3d %3d %3d ",Motor[i*4].Current,Motor[i*4+1].Current,Motor[i*4+2].Current,Motor[i*4+3].Current); |
|
- | 252 | if(4 + i * 4 >= RequiredMotors) break; |
|
- | 253 | } |
|
- | 254 | break; |
|
- | 255 | #endif |
|
- | 256 | case 16: |
|
246 | LCD_printfxy(0,0,"BL-Ctrl found " ); |
257 | LCD_printfxy(0,0,"BL-Ctrl found " ); |
247 | LCD_printfxy(0,1," %c %c %c %c ",'-' + 4 * (Motor[0].State>>7),'-' + 5 * (Motor[1].State>>7),'-' + 6 * (Motor[2].State>>7),'-' + 7 * (Motor[3].State>>7)); |
258 | LCD_printfxy(0,1," %c %c %c %c ",'-' + 4 * (Motor[0].State>>7),'-' + 5 * (Motor[1].State>>7),'-' + 6 * (Motor[2].State>>7),'-' + 7 * (Motor[3].State>>7)); |
248 | LCD_printfxy(0,2," %c %c %c %c ",'-' + 8 * (Motor[4].State>>7),'-' + 9 * (Motor[5].State>>7),'-' + 10 * (Motor[6].State>>7),'-' + 11 * (Motor[7].State>>7)); |
259 | LCD_printfxy(0,2," %c %c %c %c ",'-' + 8 * (Motor[4].State>>7),'-' + 9 * (Motor[5].State>>7),'-' + 10 * (Motor[6].State>>7),'-' + 11 * (Motor[7].State>>7)); |
249 | LCD_printfxy(0,3," %c - - - ",'-' + 12 * (Motor[8].State>>7)); |
260 | LCD_printfxy(0,3," %c - - - ",'-' + 12 * (Motor[8].State>>7)); |
250 | if(Motor[9].State>>7) LCD_printfxy(4,3,"10"); |
261 | if(Motor[9].State>>7) LCD_printfxy(4,3,"10"); |
251 | if(Motor[10].State>>7) LCD_printfxy(8,3,"11"); |
262 | if(Motor[10].State>>7) LCD_printfxy(8,3,"11"); |
252 | if(Motor[11].State>>7) LCD_printfxy(12,3,"12"); |
263 | if(Motor[11].State>>7) LCD_printfxy(12,3,"12"); |
253 | break; |
264 | break; |
254 | case 16: |
265 | case 17: |
255 | LCD_printfxy(0,0,"Flight-Time " ); |
266 | LCD_printfxy(0,0,"Flight-Time " ); |
256 | LCD_printfxy(0,1,"Total:%5umin",FlugMinutenGesamt); |
267 | LCD_printfxy(0,1,"Total:%5umin",FlugMinutenGesamt); |
257 | LCD_printfxy(0,2,"Act: %5umin",FlugMinuten); |
268 | LCD_printfxy(0,2,"Act: %5umin",FlugMinuten); |
258 | LCD_printfxy(13,3,"(reset)"); |
269 | LCD_printfxy(13,3,"(reset)"); |
259 | if(RemoteKeys & KEY4) |
270 | if(RemoteKeys & KEY4) |