Rev 1598 | Rev 1638 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1598 | Rev 1622 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | // + www.MikroKopter.com |
4 | // + www.MikroKopter.com |
5 | // + porting the sources to other systems or using the software on other systems (except hardware from www.mikrokopter.de) is not allowed |
5 | // + porting the sources to other systems or using the software on other systems (except hardware from www.mikrokopter.de) is not allowed |
6 | // + see the File "License.txt" for further Informations |
6 | // + see the File "License.txt" for further Informations |
7 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
7 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
8 | #include "main.h" |
8 | #include "main.h" |
- | 9 | #include "eeprom.h" |
|
Line 9... | Line 10... | ||
9 | 10 | ||
10 | char DisplayBuff[80] = "Hallo Welt"; |
11 | char DisplayBuff[80] = "Hello World"; |
Line 11... | Line 12... | ||
11 | unsigned char DispPtr = 0; |
12 | unsigned char DispPtr = 0; |
12 | 13 | ||
13 | unsigned char MaxMenue = 16; |
14 | unsigned char MaxMenue = 16; |
Line 43... | Line 44... | ||
43 | switch(MenuePunkt) |
44 | switch(MenuePunkt) |
44 | { |
45 | { |
45 | case 0: |
46 | case 0: |
46 | LCD_printfxy(0,0,"+ MikroKopter +"); |
47 | LCD_printfxy(0,0,"+ MikroKopter +"); |
47 | LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH +'a'); |
48 | LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10, VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH +'a'); |
48 | LCD_printfxy(0,2,"Setting:%d %s",GetActiveParamSetNumber(),Mixer.Name); |
49 | LCD_printfxy(0,2,"Setting:%d %s", GetActiveParamSet(),Mixer.Name); |
49 | if(I2CTimeout < 6) LCD_printfxy(0,3,"I2C ERROR!!!") |
50 | if(I2CTimeout < 6) LCD_printfxy(0,3,"I2C ERROR!!!") |
50 | else |
51 | else |
51 | if(MissingMotor) LCD_printfxy(0,3,"Missing BL-Ctrl:%d!!",MissingMotor) |
52 | if(MissingMotor) LCD_printfxy(0,3,"Missing BL-Ctrl:%d!!",MissingMotor) |
52 | break; |
53 | break; |
53 | case 1: |
54 | case 1: |
Line 177... | Line 178... | ||
177 | LCD_printfxy(0,2,"Act: %5umin",FlugMinuten); |
178 | LCD_printfxy(0,2,"Act: %5umin",FlugMinuten); |
178 | LCD_printfxy(13,3,"(reset)"); |
179 | LCD_printfxy(13,3,"(reset)"); |
179 | if(RemoteKeys & KEY4) |
180 | if(RemoteKeys & KEY4) |
180 | { |
181 | { |
181 | FlugMinuten = 0; |
182 | FlugMinuten = 0; |
182 | eeprom_write_byte((unsigned char*)(EEPROM_ADR_MINUTES2),FlugMinuten / 256); |
183 | SetParamWord(PID_FLIGHT_MINUTES, FlugMinuten); |
183 | eeprom_write_byte((unsigned char*)(EEPROM_ADR_MINUTES2+1),FlugMinuten % 256); |
- | |
184 | } |
184 | } |
185 | break; |
185 | break; |
186 | default: |
186 | default: |
187 | if(MenuePunkt == MaxMenue) MaxMenue--; |
187 | if(MenuePunkt == MaxMenue) MaxMenue--; |
188 | MenuePunkt = 0; |
188 | MenuePunkt = 0; |