Rev 1796 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1796 | Rev 1805 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | #include "printf_P.h" |
58 | #include "printf_P.h" |
59 | #include "analog.h" |
59 | #include "analog.h" |
60 | #include "twimaster.h" |
60 | #include "twimaster.h" |
61 | #include "attitude.h" |
61 | #include "attitude.h" |
Line 62... | Line 62... | ||
62 | 62 | ||
63 | #if (!defined (USE_MK3MAG)) |
63 | #if (!defined (USE_NAVICTRL)) |
64 | uint8_t MaxMenuItem = 13; |
64 | uint8_t MaxMenuItem = 13; |
65 | #else |
65 | #else |
- | 66 | #ifdef USE_NAVICTRL |
|
66 | #ifdef USE_MK3MAG |
67 | #include "gps.c" |
67 | uint8_t MaxMenuItem = 14; |
68 | uint8_t MaxMenuItem = 14; |
68 | #endif |
69 | #endif |
69 | #endif |
70 | #endif |
70 | uint8_t MenuItem = 0; |
71 | uint8_t MenuItem = 0; |
Line 82... | Line 83... | ||
82 | 83 | ||
83 | 84 | ||
84 | /************************************/ |
85 | /************************************/ |
85 | /* Clear LCD Buffer */ |
86 | /* Clear LCD Buffer */ |
86 | /************************************/ |
- | |
87 | void LCD_Clear(void) |
87 | /************************************/ |
88 | { |
88 | void LCD_Clear(void) { |
89 | uint8_t i; |
89 | uint8_t i; |
Line 200... | Line 200... | ||
200 | break; |
200 | break; |
201 | case 8:// Compass Menu Item |
201 | case 8:// Compass Menu Item |
202 | LCD_printfxy(0,0,"Compass "); |
202 | LCD_printfxy(0,0,"Compass "); |
203 | LCD_printfxy(0,1,"Course: %5i", compassCourse); |
203 | LCD_printfxy(0,1,"Course: %5i", compassCourse); |
204 | LCD_printfxy(0,2,"Heading: %5i", compassHeading); |
204 | LCD_printfxy(0,2,"Heading: %5i", compassHeading); |
205 | LCD_printfxy(0,3,"OffCourse: %5i", compassOffCourse); |
205 | LCD_printfxy(0,3,"OffCourse: %5i", ((540 + compassHeading - compassCourse) % 360) - 180); |
206 | break; |
206 | break; |
207 | case 9:// Poti Menu Item |
207 | case 9:// Poti Menu Item |
208 | LCD_printfxy(0,0,"Po1: %3i Po5: %3i" ,variables[0], variables[4]); //PPM24-Extesion |
208 | LCD_printfxy(0,0,"Po1: %3i Po5: %3i" ,variables[0], variables[4]); //PPM24-Extesion |
209 | LCD_printfxy(0,1,"Po2: %3i Po6: %3i" ,variables[1], variables[5]); //PPM24-Extesion |
209 | LCD_printfxy(0,1,"Po2: %3i Po6: %3i" ,variables[1], variables[5]); //PPM24-Extesion |
210 | LCD_printfxy(0,2,"Po3: %3i Po7: %3i" ,variables[2], variables[6]); //PPM24-Extesion |
210 | LCD_printfxy(0,2,"Po3: %3i Po7: %3i" ,variables[2], variables[6]); //PPM24-Extesion |
Line 240... | Line 240... | ||
240 | if(motor[9].Present) LCD_printfxy(4,3,"10"); |
240 | if(motor[9].Present) LCD_printfxy(4,3,"10"); |
241 | if(motor[10].Present) LCD_printfxy(8,3,"11"); |
241 | if(motor[10].Present) LCD_printfxy(8,3,"11"); |
242 | if(motor[11].Present) LCD_printfxy(12,3,"12"); |
242 | if(motor[11].Present) LCD_printfxy(12,3,"12"); |
243 | break; |
243 | break; |
Line 244... | Line 244... | ||
244 | 244 | ||
245 | #if (defined (USE_MK3MAG)) |
245 | #if (defined (USE_NAVICTRL)) |
246 | case 14://GPS Lat/Lon coords |
246 | case 14://GPS Lat/Lon coords |
247 | if (GPSInfo.status == INVALID) { |
247 | if (GPSInfo.status == INVALID) { |
248 | LCD_printfxy(0,0,"No GPS data!"); |
248 | LCD_printfxy(0,0,"No GPS data!"); |
249 | } else { |
249 | } else { |