Subversion Repositories FlightCtrl

Rev

Rev 499 | Rev 624 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 499 Rev 595
Line 25... Line 25...
25
 for(i=0;i<80;i++) DisplayBuff[i] = ' ';
25
 for(i=0;i<80;i++) DisplayBuff[i] = ' ';
26
}
26
}
Line 27... Line 27...
27
 
27
 
28
void Menu(void)
28
void Menu(void)
29
 {
29
 {
Line 30... Line 30...
30
  static unsigned char MaxMenue = 10,MenuePunkt=0;
30
  static unsigned char MaxMenue = 11,MenuePunkt=0;
31
 
31
 
32
  if(RemoteTasten & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue; LcdClear(); RemotePollDisplayLine = -1; }
32
  if(RemoteTasten & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue; LcdClear(); RemotePollDisplayLine = -1; }
33
  if(RemoteTasten & KEY2) { MenuePunkt++; LcdClear(); RemotePollDisplayLine = -1;}
33
  if(RemoteTasten & KEY2) { MenuePunkt++; LcdClear(); RemotePollDisplayLine = -1;}
34
  if((RemoteTasten & KEY1) && (RemoteTasten & KEY2)) MenuePunkt = 0;
34
  if((RemoteTasten & KEY1) && (RemoteTasten & KEY2)) MenuePunkt = 0;
35
  LCD_printfxy(17,0,"[%i]",MenuePunkt);
35
  if(MenuePunkt < 10) {LCD_printfxy(17,0,"[%i]",MenuePunkt);} else {LCD_printfxy(16,0,"[%i]",MenuePunkt);};
36
  switch(MenuePunkt)
36
  switch(MenuePunkt)
37
   {
37
   {
38
    case 0:
38
    case 0:
39
           LCD_printfxy(0,0,"++ MikroKopter ++");
39
           LCD_printfxy(0,0,"+ MikroKopter +");
40
           LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10,VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX+'a');
40
           LCD_printfxy(0,1,"HW:V%d.%d SW:%d.%d%c",PlatinenVersion/10,PlatinenVersion%10,VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX+'a');
41
           LCD_printfxy(0,2,"Setting: %d ",GetActiveParamSetNumber());
41
           LCD_printfxy(0,2,"Setting: %d ",GetActiveParamSetNumber());
42
           LCD_printfxy(0,3,"(c) Holger Buss");
42
           LCD_printfxy(0,3,"(c) Holger Buss");
Line 117... Line 117...
117
           LCD_printfxy(0,0,"Servo  " );
117
           LCD_printfxy(0,0,"Servo  " );
118
           LCD_printfxy(0,1,"Setpoint  %3i",Parameter_ServoNickControl);
118
           LCD_printfxy(0,1,"Setpoint  %3i",Parameter_ServoNickControl);
119
           LCD_printfxy(0,2,"Stellung: %3i",ServoValue);
119
           LCD_printfxy(0,2,"Stellung: %3i",ServoValue);
120
           LCD_printfxy(0,3,"Range:%3i-%3i",EE_Parameter.ServoNickMin,EE_Parameter.ServoNickMax);
120
           LCD_printfxy(0,3,"Range:%3i-%3i",EE_Parameter.ServoNickMin,EE_Parameter.ServoNickMax);
121
           break;
121
           break;
-
 
122
    case 11:
-
 
123
           LCD_printfxy(0,0,"ExternControl  " );
-
 
124
           LCD_printfxy(0,1,"Ni:%4i  Ro:%4i ",ExternControl.Nick,ExternControl.Roll);
-
 
125
           LCD_printfxy(0,2,"Gs:%4i  Gi:%4i ",ExternControl.Gas,ExternControl.Gier);
-
 
126
           LCD_printfxy(0,3,"Hi:%4i  Cf:%4i ",ExternControl.Hight,ExternControl.Config);
-
 
127
           break;
122
    default: MaxMenue = MenuePunkt - 1;
128
    default: MaxMenue = MenuePunkt - 1;
123
             MenuePunkt = 0;
129
             MenuePunkt = 0;
124
           break;
130
           break;
125
    }
131
    }
126
 RemoteTasten = 0;
132
 RemoteTasten = 0;