Rev 366 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 366 | Rev 378 | ||
---|---|---|---|
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 = 11,MenuePunkt=0; |
30 | static unsigned char MaxMenue = 12,MenuePunkt=0; |
31 | 31 | ||
32 | if(RemoteTasten & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue; LcdClear(); } |
32 | if(RemoteTasten & KEY1) { if(MenuePunkt) MenuePunkt--; else MenuePunkt = MaxMenue; LcdClear(); } |
33 | if(RemoteTasten & KEY2) { MenuePunkt++; LcdClear(); } |
33 | if(RemoteTasten & KEY2) { MenuePunkt++; LcdClear(); } |
Line 53... | Line 53... | ||
53 | } |
53 | } |
54 | else |
54 | else |
55 | { |
55 | { |
56 | LCD_printfxy(0,1,"Keine "); |
56 | LCD_printfxy(0,1,"Keine "); |
57 | LCD_printfxy(0,2,"Höhenregelung"); |
57 | LCD_printfxy(0,2,"Höhenregelung"); |
58 | } |
58 | } |
59 | - | ||
60 | break; |
59 | break; |
61 | case 2: |
60 | case 2: |
62 | LCD_printfxy(0,0,"akt. Lage"); |
61 | LCD_printfxy(0,0,"akt. Lage"); |
63 | LCD_printfxy(0,1,"Nick: %5i",IntegralNick/1024); |
62 | LCD_printfxy(0,1,"Nick: %5i",IntegralNick/1024); |
64 | LCD_printfxy(0,2,"Roll: %5i",IntegralRoll/1024); |
63 | LCD_printfxy(0,2,"Roll: %5i",IntegralRoll/1024); |
Line 109... | Line 108... | ||
109 | LCD_printfxy(0,1,"Setpoint %3i",Parameter_ServoNickControl); |
108 | LCD_printfxy(0,1,"Setpoint %3i",Parameter_ServoNickControl); |
110 | LCD_printfxy(0,2,"Stellung: %3i",ServoValue); |
109 | LCD_printfxy(0,2,"Stellung: %3i",ServoValue); |
111 | LCD_printfxy(0,3,"Range:%3i-%3i",EE_Parameter.ServoNickMin,EE_Parameter.ServoNickMax); |
110 | LCD_printfxy(0,3,"Range:%3i-%3i",EE_Parameter.ServoNickMin,EE_Parameter.ServoNickMax); |
112 | break; |
111 | break; |
113 | case 11: |
112 | case 11: |
114 | LCD_printfxy(0,0,"MM3 kalib."); |
113 | LCD_printfxy(0,0,"MM3 Off"); |
115 | LCD_printfxy(0,1,"X_Offset: %3i",MM3_calib.X_off); |
114 | LCD_printfxy(0,1,"X_Offset: %3i",MM3_calib.X_off); |
116 | LCD_printfxy(0,2,"Y_Offset: %3i",MM3_calib.Y_off); |
115 | LCD_printfxy(0,2,"Y_Offset: %3i",MM3_calib.Y_off); |
117 | LCD_printfxy(0,3,"Z_Offset: %3i",MM3_calib.Z_off); |
116 | LCD_printfxy(0,3,"Z_Offset: %3i",MM3_calib.Z_off); |
118 | break; |
117 | break; |
- | 118 | case 12: |
|
- | 119 | LCD_printfxy(0,0,"MM3 Range"); |
|
- | 120 | LCD_printfxy(0,1,"X_Range: %4i",MM3_calib.X_range); |
|
- | 121 | LCD_printfxy(0,2,"Y_Range: %4i",MM3_calib.Y_range); |
|
- | 122 | LCD_printfxy(0,3,"Z_Range: %4i",MM3_calib.Z_range); |
|
- | 123 | break; |
|
119 | default: MaxMenue = MenuePunkt - 1; |
124 | default: MaxMenue = MenuePunkt - 1; |
120 | MenuePunkt = 0; |
125 | MenuePunkt = 0; |
121 | break; |
126 | break; |
122 | } |
127 | } |
123 | RemoteTasten = 0; |
128 | RemoteTasten = 0; |