Rev 701 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 701 | Rev 702 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | #include "rc.h" |
14 | #include "rc.h" |
15 | #include "uart.h" |
15 | #include "uart.h" |
16 | #include "printf_P.h" |
16 | #include "printf_P.h" |
17 | #include "analog.h" |
17 | #include "analog.h" |
18 | #include "mm3.h" |
18 | #include "mm3.h" |
- | 19 | #include "ubx.h" |
|
19 | #include "_Settings.h" |
20 | #include "_Settings.h" |
Line 20... | Line 21... | ||
20 | 21 | ||
21 | #define ARRAYSIZE 10 |
22 | #define ARRAYSIZE 10 |
22 | uint8_t Array[ARRAYSIZE] = {1,2,3,4,5,6,7,8,9,10}; |
23 | uint8_t Array[ARRAYSIZE] = {1,2,3,4,5,6,7,8,9,10}; |
Line 45... | Line 46... | ||
45 | /* Update Menu on LCD */ |
46 | /* Update Menu on LCD */ |
46 | /************************************/ |
47 | /************************************/ |
47 | // Display with 20 characters in 4 lines |
48 | // Display with 20 characters in 4 lines |
48 | void LCD_PrintMenu(void) |
49 | void LCD_PrintMenu(void) |
49 | { |
50 | { |
50 | static uint8_t MaxMenuItem = 13, MenuItem=0; |
51 | static uint8_t MaxMenuItem = 14, MenuItem=0; |
Line 51... | Line 52... | ||
51 | 52 | ||
52 | // if KEY1 is activated goto previous menu item |
53 | // if KEY1 is activated goto previous menu item |
53 | if(RemoteButtons & KEY1) |
54 | if(RemoteButtons & KEY1) |
54 | { |
55 | { |
Line 178... | Line 179... | ||
178 | case 13://MM3 Range |
179 | case 13://MM3 Range |
179 | LCD_printfxy(0,0,"MM3 Range"); |
180 | LCD_printfxy(0,0,"MM3 Range"); |
180 | LCD_printfxy(0,1,"X_Range: %4i",MM3_calib.X_range); |
181 | LCD_printfxy(0,1,"X_Range: %4i",MM3_calib.X_range); |
181 | LCD_printfxy(0,2,"Y_Range: %4i",MM3_calib.Y_range); |
182 | LCD_printfxy(0,2,"Y_Range: %4i",MM3_calib.Y_range); |
182 | LCD_printfxy(0,3,"Z_Range: %4i",MM3_calib.Z_range); |
183 | LCD_printfxy(0,3,"Z_Range: %4i",MM3_calib.Z_range); |
183 | break; |
184 | break; |
- | 185 | case 14://GPS Status |
|
- | 186 | LCD_printfxy(0,0,"GPS Status"); |
|
- | 187 | if (GPSInfo.status == INVALID) |
|
- | 188 | { |
|
- | 189 | LCD_printfxy(0,1,"No data available!"); |
|
- | 190 | } |
|
- | 191 | else |
|
- | 192 | { |
|
- | 193 | switch (GPSInfo.satfix) |
|
- | 194 | { |
|
- | 195 | case SATFIX_NONE: |
|
- | 196 | LCD_printfxy(0,1,"Satfix: None"); |
|
- | 197 | break; |
|
- | 198 | case SATFIX_2D: |
|
- | 199 | LCD_printfxy(0,1,"Satfix: 2D"); |
|
- | 200 | break; |
|
- | 201 | case SATFIX_3D: |
|
- | 202 | LCD_printfxy(0,1,"Satfix: 3D"); |
|
- | 203 | break; |
|
- | 204 | default: |
|
- | 205 | LCD_printfxy(0,1,"Satfix: Unknown"); |
|
- | 206 | break; |
|
- | 207 | } |
|
- | 208 | } |
|
- | 209 | break; |
|
184 | default: MaxMenuItem = MenuItem - 1; |
210 | default: MaxMenuItem = MenuItem - 1; |
185 | MenuItem = 0; |
211 | MenuItem = 0; |
186 | break; |
212 | break; |
187 | } |
213 | } |
188 | RemoteButtons = 0; |
214 | RemoteButtons = 0; |