Subversion Repositories FlightCtrl

Rev

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

Rev 1930 Rev 1933
Line 55... Line 55...
55
//---------------------------------------------------------------
55
//---------------------------------------------------------------
Line 56... Line 56...
56
 
56
 
57
unsigned char HoTT_Waring(void)
57
unsigned char HoTT_Waring(void)
58
{
58
{
59
  if(FC_StatusFlags & FC_STATUS_LOWBAT) return(VOICE_MINIMALE_EINGANSSPANNUNG);
59
  if(FC_StatusFlags & FC_STATUS_LOWBAT) return(VOICE_MINIMALE_EINGANSSPANNUNG);
60
  if(/*MotorenEin &&*/ NC_ErrorCode)            return(VOICE_BEEP);
60
  if(MotorenEin && NC_ErrorCode)                return(VOICE_BEEP);
61
  return(0);
61
  return(0);
Line 62... Line 62...
62
}
62
}
63
 
63
 
Line 100... Line 100...
100
}
100
}
Line 101... Line 101...
101
 
101
 
102
//---------------------------------------------------------------
102
//---------------------------------------------------------------
103
void HoTT_Menu(void)
103
void HoTT_Menu(void)
104
{
104
{
105
 static unsigned char what, page = 0;
105
 static unsigned char line, page = 0;
106
 unsigned char tmp;
106
 unsigned char tmp;
107
 if(page == 0)
107
 if(page == 0)
108
  switch(what++)
108
  switch(line++)
109
  {
109
  {
110
        case 0:  
110
        case 0:  
111
                if(FC_StatusFlags & FC_STATUS_LOWBAT)
111
                if(FC_StatusFlags & FC_STATUS_LOWBAT)
112
                         HoTT_printfxy_BLINK(0,0," %2i:%02i  %2i.%1iV %4imAh",FlugSekunden/60,FlugSekunden%60,UBat/10, UBat%10,Capacity.UsedCapacity)
112
                         HoTT_printfxy_BLINK(0,0," %2i:%02i  %2i.%1iV %4imAh",FlugSekunden/60,FlugSekunden%60,UBat/10, UBat%10,Capacity.UsedCapacity)
Line 132... Line 132...
132
                         Hott_ClearLine(2);
132
                         Hott_ClearLine(2);
133
                        }
133
                        }
134
                        break;
134
                        break;
135
        case 3:
135
        case 3:
136
                        HoTT_printfxy(0,3,"PWR:%2i.%1iA (%iW) ",Capacity.ActualCurrent/10, Capacity.ActualCurrent%10,Capacity.ActualPower);
136
                        HoTT_printfxy(0,3,"PWR:%2i.%1iA (%iW) ",Capacity.ActualCurrent/10, Capacity.ActualCurrent%10,Capacity.ActualPower);
137
//                      HoTT_printfxy(14,3,"%2i.%1iV",UBat/10, UBat%10);
-
 
138
                        break;
137
                        break;
139
        case 4:  
138
        case 4:  
140
                        if(NaviDataOkay)
139
                        if(NaviDataOkay)
141
                        {
140
                        {
142
                                HoTT_printfxy(0,4,"GPS:%2um/s SAT:%d ",GPSInfo.Speed,GPSInfo.NumOfSats);
141
                                HoTT_printfxy(0,4,"GPS:%2um/s SAT:%d ",GPSInfo.Speed,GPSInfo.NumOfSats);
Line 194... Line 193...
194
        case 12:
193
        case 12:
195
        case 13:
194
        case 13:
196
        case 14:  
195
        case 14:  
197
        case 15:  
196
        case 15:  
198
        case 16:  
197
        case 16:  
199
                        if(HottKeyboard == 1) { LIBFC_HoTT_Clear(); page = 1; what = 0;};
198
                        if(HottKeyboard == 8) { LIBFC_HoTT_Clear(); page = 1; line = 0;};
200
                        HottKeyboard = 0;
199
                        HottKeyboard = 0;
201
                        break;
200
                        break;
202
   default:  what = 0;
201
   default:  line = 0;
203
                        break;
202
                        break;
204
  }
203
  }
205
  else
204
  else
206
  if(page == 1)
205
  if(page == 1)
207
  switch(what++)
206
  switch(line++)
208
  {
207
  {
209
        case 0:  
208
        case 0:  
210
                        HoTT_printfxy_INV(0,0,"Setting:%u %s ",GetActiveParamSet(),EE_Parameter.Name);
209
                        HoTT_printfxy_INV(0,0,"Setting:%u %s ",GetActiveParamSet(),EE_Parameter.Name);
211
                        break;
210
                        break;
212
    case 1: HoTT_printfxy(0,1,"Min:%2i.%1iV %s ",BattLowVoltageWarning/10, BattLowVoltageWarning%10, Mixer.Name);
211
    case 1: HoTT_printfxy(0,1,"Min:%2i.%1iV %s ",BattLowVoltageWarning/10, BattLowVoltageWarning%10, Mixer.Name);
Line 251... Line 250...
251
    case 5: HoTT_printfxy(0,5,"HOME ALT:");
250
    case 5: HoTT_printfxy(0,5,"HOME ALT:");
252
                        if(EE_Parameter.ComingHomeAltitude) HoTT_printf("%um",EE_Parameter.ComingHomeAltitude) else HoTT_printf("HOLD ");
251
                        if(EE_Parameter.ComingHomeAltitude) HoTT_printf("%um",EE_Parameter.ComingHomeAltitude) else HoTT_printf("HOLD ");
253
                        break;
252
                        break;
254
        case 6:
253
        case 6:
255
            HoTT_printfxy(0,6,"Ni:%4i Ro:%4i C:%3i",PPM_in[EE_Parameter.Kanalbelegung[K_NICK]],PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]], Parameter_ServoNickControl);
254
            HoTT_printfxy(0,6,"Ni:%4i Ro:%4i C:%3i",PPM_in[EE_Parameter.Kanalbelegung[K_NICK]],PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]], Parameter_ServoNickControl);
256
                    HoTT_printfxy(0,7,"Gs:%4i Ya:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_GAS]]+120,PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]);
255
                    HoTT_printfxy(0,7,"Gs:%4i Ya:%4i ",PPM_in[EE_Parameter.Kanalbelegung[K_GAS]]+127,PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]);
257
                        break;
256
                        break;
258
    case 7: //HoTT_printfxy(0,6,"WARNINGS:");
257
    case 7: //HoTT_printfxy(0,6,"WARNINGS:");
259
                        if(HoTTBlink)
258
                        if(HoTTBlink)
260
                        {
259
                        {
261
                         LIBFC_HoTT_SetPos(6 * 21);
260
                         LIBFC_HoTT_SetPos(6 * 21);
Line 273... Line 272...
273
    case 12:
272
    case 12:
274
    case 13:
273
    case 13:
275
    case 14:
274
    case 14:
276
    case 15:
275
    case 15:
277
    case 16:
276
    case 16:
278
                        if(HottKeyboard == 8) { LIBFC_HoTT_Clear(); page = 0; what = 0;};
277
                        if(HottKeyboard == 1) { LIBFC_HoTT_Clear(); page = 0; line = 0;};
279
                        HottKeyboard = 0;
278
                        HottKeyboard = 0;
280
                        break;
279
                        break;
281
   default:  what = 0;
280
   default:  line = 0;
282
                        break;
281
                        break;
283
  }
282
  }
284
  else page = 0;
283
  else page = 0;
285
}
284
}