Subversion Repositories FlightCtrl

Rev

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

Rev 2176 Rev 2177
Line 66... Line 66...
66
#define JETIBOX_KEY_UNDEF       0x00
66
#define JETIBOX_KEY_UNDEF       0x00
Line 67... Line 67...
67
 
67
 
68
#define JetiBox_printfxy(x,y,format, args...)  { LIBFC_JetiBox_SetPos(y * 16 + x); _printf_P(&LIBFC_JetiBox_Putchar, PSTR(format) , ## args);}
68
#define JetiBox_printfxy(x,y,format, args...)  { LIBFC_JetiBox_SetPos(y * 16 + x); _printf_P(&LIBFC_JetiBox_Putchar, PSTR(format) , ## args);}
Line -... Line 69...
-
 
69
#define JetiBox_printf(format, args...)        {  _printf_P(&LIBFC_JetiBox_Putchar, PSTR(format) , ## args);}
-
 
70
 
69
#define JetiBox_printf(format, args...)        {  _printf_P(&LIBFC_JetiBox_Putchar, PSTR(format) , ## args);}
71
#define LIMIT_MIN_MAX(value, min, max) {if(value <= min) value = min; else if(value >= max) value = max;} //MartinR
70
 
72
 
71
// -----------------------------------------------------------
73
// -----------------------------------------------------------
72
// the menu functions
74
// the menu functions
73
// -----------------------------------------------------------
75
// -----------------------------------------------------------
Line 178... Line 180...
178
        }
180
        }
179
#endif
181
#endif
180
}
182
}
Line -... Line 183...
-
 
183
 
-
 
184
 
-
 
185
// MartinR für Jeti+  Anfang
-
 
186
void Menu_spoti1(uint8_t key)
-
 
187
{                       //0123456789ABCDEF
-
 
188
 
-
 
189
        JetiBox_printfxy(0,0,">%3i=Serialpot1",(PPM_in[13] + 127));
-
 
190
        //JetiBox_printfxy(0,1," %3i=Serialpot2",PPM_in[14]);
-
 
191
        if(key== JETIBOX_KEY_UP) PPM_in[13] = PPM_in[13]+25;
-
 
192
        if(key== JETIBOX_KEY_DOWN) PPM_in[13] = PPM_in[13]-25;
-
 
193
        LIMIT_MIN_MAX(PPM_in[13], -127, 128);   // MartinR: Begrenzung 
-
 
194
}
-
 
195
 
-
 
196
void Menu_spoti2(uint8_t key)
-
 
197
{                       //0123456789ABCDEF
-
 
198
 
-
 
199
        //JetiBox_printfxy(0,0," %3i=Serialpot1",PPM_in[13]);
-
 
200
        JetiBox_printfxy(0,1,">%3i=Serialpot2",(PPM_in[14] + 127));
-
 
201
        if(key== JETIBOX_KEY_UP) PPM_in[14] = PPM_in[14]+2;
-
 
202
        if(key== JETIBOX_KEY_DOWN) PPM_in[14] = PPM_in[14]-2;
-
 
203
        LIMIT_MIN_MAX(PPM_in[14], -127, 128);   // MartinR: Begrenzung
-
 
204
}
-
 
205
 
181
 
206
// MartinR für Jeti+  Ende
182
 
207
 
183
// -----------------------------------------------------------
208
// -----------------------------------------------------------
184
// the menu topology
209
// the menu topology
Line 202... Line 227...
202
*/
227
*/
Line 203... Line 228...
203
 
228
 
204
const MENU_ENTRY JetiBox_Menu[] PROGMEM=
229
const MENU_ENTRY JetiBox_Menu[] PROGMEM=
205
{ // l  r  u  d  pHandler
230
{ // l  r  u  d  pHandler
-
 
231
#if !defined (RECEIVER_SPEKTRUM_DX7EXP) && !defined (RECEIVER_SPEKTRUM_DX8EXP)
206
#if !defined (RECEIVER_SPEKTRUM_DX7EXP) && !defined (RECEIVER_SPEKTRUM_DX8EXP)
232
        //{4, 1, 0, 0, &Menu_Status },  // 0 // MartinR: so war es
207
        {4, 1, 0, 0, &Menu_Status },    // 0
233
        {6, 1, 0, 0, &Menu_Status },    // 0 // MartinR: geändert
208
        {0, 2, 1, 1, &Menu_Temperature },       // 1
234
        {0, 2, 1, 1, &Menu_Temperature },       // 1
209
        {1, 3, 2, 2, &Menu_Battery },   // 2
235
        {1, 3, 2, 2, &Menu_Battery },   // 2
210
        {2, 4, 3, 3, &Menu_PosInfo },   // 3
236
        {2, 4, 3, 3, &Menu_PosInfo },   // 3
-
 
237
        //{3, 0, 4, 4, &Magnet_Values } // 4 // MartinR: so war es
-
 
238
        {3, 5, 4, 4, &Magnet_Values },  // 4 // MartinR: geändert
-
 
239
       
-
 
240
        {4, 6, 5, 5, &Menu_spoti1 },    // 5  // MartinR: für Jeti+
-
 
241
        {5, 0, 6, 6, &Menu_spoti2 },    // 6  // MartinR: für Jeti+
211
        {3, 0, 4, 4, &Magnet_Values }   // 4
242
 
212
#endif
243
#endif
Line 213... Line 244...
213
};
244
};
214
 
245