Subversion Repositories NaviCtrl

Rev

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

Rev 857 Rev 862
Line 124... Line 124...
124
}
124
}
Line 125... Line 125...
125
 
125
 
126
// Display with 20 characters in 4 lines
126
// Display with 20 characters in 4 lines
127
void MobileMenuUpdate(u8 item, u8 Keys, s16 Value)
127
void MobileMenuUpdate(u8 item, u8 Keys, s16 Value)
128
{
128
{
129
static u32 tmp,tmp2,tmp3;
129
//static u32 tmp,tmp2,tmp3;
130
        s32 i1,i2;
130
//      s32 i1,i2;
131
        u8 sign;
131
        u8 sign;
132
        Mobile_Clear();
132
        Mobile_Clear();
133
        FromMenuGimbalYaw = 0; // will be set in the menu below
133
        FromMenuGimbalYaw = 0; // will be set in the menu below
134
        FromMenuServoNickControl = 0;
134
        FromMenuServoNickControl = 0;
Line 331... Line 331...
331
                                          FromMenuGimbalYaw = Value * (-2);
331
                                          FromMenuGimbalYaw = Value * (-2);
332
                                         }
332
                                         }
333
                                        else
333
                                        else
334
                                         {
334
                                         {
335
                                          Mobile_printfxy(0,4,"Control: Nick");
335
                                          Mobile_printfxy(0,4,"Control: Nick");
-
 
336
                                          if(FC.RC_Quality < 50) Mobile_printfxy(0,4,"RC Failsafe pos.!!");
336
                                          FromMenuServoNickControl = Value;
337
                                          FromMenuServoNickControl = Value;
337
                                          FromMenuGimbalYaw = 0;
338
                                          FromMenuGimbalYaw = 0;
338
                                         }
339
                                         }
Line 339... Line 340...
339
 
340
 
Line 347... Line 348...
347
                                        if(Keys & KEY2) control = 1;
348
                                        if(Keys & KEY2) control = 1;
348
                                }
349
                                }
349
                                break;
350
                                break;
350
                case 99:
351
                case 99:
351
                                {
352
                                {
352
                                 static u16 offset = 20, tmp;
353
//                               static u16 offset = 20, tmp;
353
//                               Mobile_printfxy(0,0,"Testpage %i %c",item,33);
354
//                               Mobile_printfxy(0,0,"Testpage %i %c",item,33);
354
                                 for(sign = 0; sign < 21*5; sign++) Mobile.DisplayBuff[sign] = sign + ' ';
355
                                 for(sign = 0; sign < 21*5; sign++) Mobile.DisplayBuff[sign] = sign + ' ';
Line 355... Line 356...
355
 
356
 
356
//                               if(Keys & COPY) offset = Value;
357
//                               if(Keys & COPY) offset = Value;