Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1804 → Rev 1805

/branches/dongfang_FC_rewrite/menu.c
60,10 → 60,11
#include "twimaster.h"
#include "attitude.h"
 
#if (!defined (USE_MK3MAG))
#if (!defined (USE_NAVICTRL))
uint8_t MaxMenuItem = 13;
#else
#ifdef USE_MK3MAG
#ifdef USE_NAVICTRL
#include "gps.c"
uint8_t MaxMenuItem = 14;
#endif
#endif
84,8 → 85,7
/************************************/
/* Clear LCD Buffer */
/************************************/
void LCD_Clear(void)
{
void LCD_Clear(void) {
uint8_t i;
for( i = 0; i < DISPLAYBUFFSIZE; i++) DisplayBuff[i] = ' ';
}
202,7 → 202,7
LCD_printfxy(0,0,"Compass ");
LCD_printfxy(0,1,"Course: %5i", compassCourse);
LCD_printfxy(0,2,"Heading: %5i", compassHeading);
LCD_printfxy(0,3,"OffCourse: %5i", compassOffCourse);
LCD_printfxy(0,3,"OffCourse: %5i", ((540 + compassHeading - compassCourse) % 360) - 180);
break;
case 9:// Poti Menu Item
LCD_printfxy(0,0,"Po1: %3i Po5: %3i" ,variables[0], variables[4]); //PPM24-Extesion
242,7 → 242,7
if(motor[11].Present) LCD_printfxy(12,3,"12");
break;
#if (defined (USE_MK3MAG))
#if (defined (USE_NAVICTRL))
case 14://GPS Lat/Lon coords
if (GPSInfo.status == INVALID) {
LCD_printfxy(0,0,"No GPS data!");