Subversion Repositories FlightCtrl

Rev

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

Rev 2554 Rev 2561
Line 142... Line 142...
142
 "BL-Selftest     \0",  // 32
142
 "BL-Selftest     \0",  // 32
143
 "no ext. compass \0",  // 33
143
 "no ext. compass \0",  // 33
144
 "compass sensor  \0",  // 34
144
 "compass sensor  \0",  // 34
145
 "Failsafe postion\0",  // 35
145
 "Failsafe postion\0",  // 35
146
 "No Redundancy!  \0",  // 36
146
 "No Redundancy!  \0",  // 36
147
 "Redundancy test \0"   // 37
147
 "Redundancy test \0",  // 37
148
 
-
 
-
 
148
 "GPS Update Rate \0"   // 38
149
};
149
 };
Line 150... Line 150...
150
 
150
 
151
 
151
 
152
const char PROGMEM HOTT_ERROR[MAX_ERR_NUMBER][2] =
152
const char PROGMEM HOTT_ERROR[MAX_ERR_NUMBER][2] =
Line 187... Line 187...
187
         {SPEAK_ERR_MOTOR,0},   // "BL-Selftest     \0"         // 32
187
         {SPEAK_ERR_MOTOR,0},   // "BL-Selftest     \0"         // 32
188
         {SPEAK_ERR_COMPASS,0}, // "no ext. compass"            // 33
188
         {SPEAK_ERR_COMPASS,0}, // "no ext. compass"            // 33
189
         {SPEAK_ERR_COMPASS,0}, // "compass sensor"             // 34
189
         {SPEAK_ERR_COMPASS,0}, // "compass sensor"             // 34
190
         {SPEAK_ERROR,1},               // "Failsafe postion0",         // 35
190
         {SPEAK_ERROR,1},               // "Failsafe postion0",         // 35
191
         {SPEAK_ERROR,0},               // "No Redundancy!",            // 36
191
         {SPEAK_ERROR,0},               // "No Redundancy!",            // 36
192
         {0,0}                                  // "Redundancy test",           // 37
192
         {0,0},                                 // "Redundancy test",           // 37
-
 
193
         {SPEAK_ERR_GPS,0},             // "GPS Update Rate",           // 38
193
};
194
};
Line 194... Line 195...
194
 
195
 
195
/*
196
/*
196
//------------------------------------------------------------------------------------------
197
//------------------------------------------------------------------------------------------
Line 583... Line 584...
583
void HoTT_Menu(void)
584
void HoTT_Menu(void)
584
{
585
{
585
 static unsigned char line, page = 0,show_current = 0,show_mag = 0, show_poti = 0,hyterese = 1;
586
 static unsigned char line, page = 0,show_current = 0,show_mag = 0, show_poti = 0,hyterese = 1;
586
 unsigned char tmp;
587
 unsigned char tmp;
587
 HoTTVarioMeter = (HoTTVarioMeter * 7 + VarioMeter) / 8;
588
 HoTTVarioMeter = (HoTTVarioMeter * 7 + VarioMeter) / 8;
-
 
589
 static int delay;
Line 588... Line 590...
588
 
590
 
Line 589... Line 591...
589
// if(HottKeyboard) {beeptime = 1000;};  
591
// if(HottKeyboard) {beeptime = 1000;};  
590
 
592
 
Line 1065... Line 1067...
1065
                        if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page++; line = 0;}
1067
                        if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page++; line = 0;}
1066
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page--; line = 0;};
1068
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page--; line = 0;};
1067
                        HottKeyboard = 0;
1069
                        HottKeyboard = 0;
1068
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1070
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1069
// Bedienung per Taster am Sender
1071
// Bedienung per Taster am Sender
1070
  if(Parameter_UserParam5 > 120 && !hyterese)  // 
1072
  if(Parameter_UserParam5 > 120)  // 
-
 
1073
   {
-
 
1074
    hyterese = 2;
-
 
1075
    if(CheckDelay(delay)) { wp_tmp = 0; hyterese = 1;}
-
 
1076
   }
-
 
1077
  else
-
 
1078
  if(Parameter_UserParam5 < 100)  
1071
   {
1079
   {
1072
    hyterese = 1;
1080
        delay = SetDelay(2500);
1073
        if(wp_tmp < NaviData_MaxWpListIndex)
1081
        if(hyterese == 2 && (wp_tmp < NaviData_MaxWpListIndex))
1074
         {
1082
         {
1075
          wp_tmp++;
1083
          wp_tmp++;
1076
          ToNC_Store_SingePoint = wp_tmp;
1084
          ToNC_Store_SingePoint = wp_tmp;
1077
          changed = 0;
1085
          changed = 0;
1078
         }
1086
         }
1079
   }
-
 
1080
  else
-
 
1081
  if(Parameter_UserParam5 < 100)  
-
 
1082
   {
-
 
1083
    hyterese = 0;
1087
    hyterese = 0;
1084
   }
1088
   }
1085
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1089
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1086
                        break;
1090
                        break;
1087
   default:  line = 0;
1091
   default:  line = 0;
Line 1144... Line 1148...
1144
                        if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page++; line = 0;}
1148
                        if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page++; line = 0;}
1145
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page--; line = 0;};
1149
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page--; line = 0;};
1146
                        HottKeyboard = 0;
1150
                        HottKeyboard = 0;
1147
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1151
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1148
// Bedienung per Taster am Sender
1152
// Bedienung per Taster am Sender
1149
  if(Parameter_UserParam5 > 120 && !hyterese)  // 
1153
  if(Parameter_UserParam5 > 120)  // 
1150
   {
1154
   {
1151
    hyterese = 1;
1155
    hyterese = 2;
-
 
1156
    if(CheckDelay(delay)) { wp_tmp = 0; hyterese = 1;}
-
 
1157
   }
-
 
1158
  else
-
 
1159
  if(Parameter_UserParam5 < 100)  
-
 
1160
   {
-
 
1161
        delay = SetDelay(2500);
1152
        if(wp_tmp < NaviData_MaxWpListIndex)
1162
        if(hyterese == 2 && (wp_tmp < NaviData_MaxWpListIndex))
1153
         {
1163
         {
1154
          wp_tmp++;
1164
          wp_tmp++;
1155
          ToNC_Load_SingePoint = wp_tmp;
1165
          ToNC_Load_SingePoint = wp_tmp;
1156
          changed = 0;
1166
          changed = 0;
1157
         }
1167
         }
1158
   }
-
 
1159
  else
-
 
1160
  if(Parameter_UserParam5 < 100)  
-
 
1161
   {
-
 
1162
    hyterese = 0;
1168
    hyterese = 0;
1163
   }
1169
   }
1164
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1170
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1165
 
-
 
1166
                        break;
1171
                        break;
1167
   default:  line = 0;
1172
   default:  line = 0;
1168
                        break;
1173
                        break;
1169
  }
1174
  }
1170
  break;
1175
  break;