Subversion Repositories FlightCtrl

Rev

Rev 2345 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2345 Rev 2384
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 186... Line 188...
186
        }
188
        }
187
#endif
189
#endif
188
}
190
}
Line -... Line 191...
-
 
191
 
-
 
192
 
-
 
193
// MartinR für Jeti+  Anfang
-
 
194
void Menu_spoti1(uint8_t key)
-
 
195
{                       //0123456789ABCDEF
-
 
196
 
-
 
197
        JetiBox_printfxy(0,0,">%3i=Serialpot1",(PPM_in[13] + 127));
-
 
198
        //JetiBox_printfxy(0,1," %3i=Serialpot2",PPM_in[14]);
-
 
199
        if(key== JETIBOX_KEY_UP) PPM_in[13] = PPM_in[13]+25;
-
 
200
        if(key== JETIBOX_KEY_DOWN) PPM_in[13] = PPM_in[13]-25;
-
 
201
        LIMIT_MIN_MAX(PPM_in[13], -127, 128);   // MartinR: Begrenzung 
-
 
202
}
-
 
203
 
-
 
204
void Menu_spoti2(uint8_t key)
-
 
205
{                       //0123456789ABCDEF
-
 
206
 
-
 
207
        //JetiBox_printfxy(0,0," %3i=Serialpot1",PPM_in[13]);
-
 
208
        JetiBox_printfxy(0,1,">%3i=Serialpot2",(PPM_in[14] + 127));
-
 
209
        if(key== JETIBOX_KEY_UP) PPM_in[14] = PPM_in[14]+2;
-
 
210
        if(key== JETIBOX_KEY_DOWN) PPM_in[14] = PPM_in[14]-2;
-
 
211
        LIMIT_MIN_MAX(PPM_in[14], -127, 128);   // MartinR: Begrenzung
-
 
212
}
-
 
213
 
189
 
214
// MartinR für Jeti+  Ende
190
 
215
 
191
// -----------------------------------------------------------
216
// -----------------------------------------------------------
192
// the menu topology
217
// the menu topology
Line 210... Line 235...
210
*/
235
*/
Line 211... Line 236...
211
 
236
 
212
const MENU_ENTRY JetiBox_Menu[] PROGMEM=
237
const MENU_ENTRY JetiBox_Menu[] PROGMEM=
213
{ // l  r  u  d  pHandler
238
{ // l  r  u  d  pHandler
-
 
239
#if !defined (RECEIVER_SPEKTRUM_DX7EXP) && !defined (RECEIVER_SPEKTRUM_DX8EXP)
214
#if !defined (RECEIVER_SPEKTRUM_DX7EXP) && !defined (RECEIVER_SPEKTRUM_DX8EXP)
240
        //{4, 1, 0, 0, &Menu_Status },  // 0 // MartinR: so war es
215
        {4, 1, 0, 0, &Menu_Status },    // 0
241
        {6, 1, 0, 0, &Menu_Status },    // 0 // MartinR: geändert
216
        {0, 2, 1, 1, &Menu_Temperature },       // 1
242
        {0, 2, 1, 1, &Menu_Temperature },       // 1
217
        {1, 3, 2, 2, &Menu_Battery },   // 2
243
        {1, 3, 2, 2, &Menu_Battery },   // 2
218
        {2, 4, 3, 3, &Menu_PosInfo },   // 3
244
        {2, 4, 3, 3, &Menu_PosInfo },   // 3
-
 
245
        //{3, 0, 4, 4, &Magnet_Values } // 4 // MartinR: so war es
-
 
246
        {3, 5, 4, 4, &Magnet_Values },  // 4 // MartinR: geändert
-
 
247
       
-
 
248
        {4, 6, 5, 5, &Menu_spoti1 },    // 5  // MartinR: für Jeti+
-
 
249
        {5, 0, 6, 6, &Menu_spoti2 },    // 6  // MartinR: für Jeti+
219
        {3, 0, 4, 4, &Magnet_Values }   // 4
250
 
220
#endif
251
#endif
Line 221... Line 252...
221
};
252
};
222
 
253