Subversion Repositories FlightCtrl

Rev

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

Rev 2570 Rev 2575
Line 56... Line 56...
56
#include "spi.h"
56
#include "spi.h"
57
#include "capacity.h"
57
#include "capacity.h"
Line 58... Line 58...
58
 
58
 
59
unsigned char NaviData_WaypointIndex = 0;
59
unsigned char NaviData_WaypointIndex = 0;
60
unsigned char NaviData_WaypointNumber = 0, NaviData_TargetHoldTime = 0, ToNC_Load_WP_List = 0, NaviData_MaxWpListIndex = 0;
60
unsigned char NaviData_WaypointNumber = 0, NaviData_TargetHoldTime = 0, ToNC_Load_WP_List = 0, NaviData_MaxWpListIndex = 0;
61
unsigned char ToNC_Load_SingePoint = 0, ToNC_Store_SingePoint = 0, Show_Load = 0, Show_Store = 0;
61
unsigned char ToNC_Load_SingePoint = 0, ToNC_Store_SingePoint = 0, Show_Load_Time = 0, Show_Load_Value = 0, Show_Store_Time = 0, Show_Store_Value = 0;
Line 62... Line 62...
62
char WPL_Name[10];// = {"         \0"};
62
char WPL_Name[10];// = {"         \0"};
Line 63... Line 63...
63
 
63
 
Line 451... Line 451...
451
         VarioPacket.Text[19] = ' ';
451
         VarioPacket.Text[19] = ' ';
452
         VarioPacket.Text[20] = ' ';
452
         VarioPacket.Text[20] = ' ';
453
                }
453
                }
454
         }
454
         }
455
         else
455
         else
456
         if(Show_Store)
456
         if(Show_Store_Time)
457
         {
457
         {
458
          for(i=0; i<21;i++) VarioPacket.Text[i] = pgm_read_byte(&STORE[i]); // no Error and not calibrated
458
          for(i=0; i<21;i++) VarioPacket.Text[i] = pgm_read_byte(&STORE[i]); // no Error and not calibrated
-
 
459
          if(Show_Store_Value < 10) VarioPacket.Text[18] = Show_Store_Value + '0';
-
 
460
          else
-
 
461
          {
-
 
462
           VarioPacket.Text[18] = Show_Store_Value/10 + '0';
-
 
463
           VarioPacket.Text[19] = Show_Store_Value%10 + '0';
-
 
464
          }
459
         }
465
         }
460
         else    
466
         else    
461
         if(Show_Load)
467
         if(Show_Load_Time)
462
         {
468
         {
463
          for(i=0; i<21;i++) VarioPacket.Text[i] = pgm_read_byte(&LOAD[i]); // no Error and not calibrated
469
          for(i=0; i<21;i++) VarioPacket.Text[i] = pgm_read_byte(&LOAD[i]); // no Error and not calibrated
-
 
470
          if(Show_Load_Value < 10) VarioPacket.Text[17] = Show_Load_Value + '0';
-
 
471
          else
-
 
472
          {
-
 
473
           VarioPacket.Text[17] = Show_Load_Value/10 + '0';
-
 
474
           VarioPacket.Text[18] = Show_Load_Value%10 + '0';
-
 
475
          }
464
         }
476
         }
465
         else    
477
         else    
466
     if(NaviData_WaypointNumber)
478
     if(NaviData_WaypointNumber)
467
         {    
479
         {    
468
          unsigned int tmp_int;
480
          unsigned int tmp_int;
Line 907... Line 919...
907
                        break;
919
                        break;
908
    case 7: //HoTT_printfxy(0,6,"WARNINGS:");
920
    case 7: //HoTT_printfxy(0,6,"WARNINGS:");
909
                        if(HoTTBlink)
921
                        if(HoTTBlink)
910
                        {
922
                        {
911
                         LIBFC_HoTT_SetPos(6 * 21);
923
                         LIBFC_HoTT_SetPos(6 * 21);
912
                         if(!(Parameter_GlobalConfig & CFG_ACHSENKOPPLUNG_AKTIV)) HoTT_printf_BLINK("COUPLING OFF! ");
924
//                       if(!(Parameter_GlobalConfig & CFG_ACHSENKOPPLUNG_AKTIV)) HoTT_printf_BLINK("COUPLING OFF! ");
913
                         if(EE_Parameter.BitConfig & (CFG_LOOP_LINKS | CFG_LOOP_RECHTS | CFG_LOOP_UNTEN | CFG_LOOP_OBEN)) HoTT_printf_BLINK("LOOPING! ");
925
                         if(EE_Parameter.BitConfig & (CFG_LOOP_LINKS | CFG_LOOP_RECHTS | CFG_LOOP_UNTEN | CFG_LOOP_OBEN)) HoTT_printf_BLINK("LOOPING! ");
914
                         if(Parameter_GlobalConfig & CFG_HEADING_HOLD) HoTT_printf_BLINK("HH! ");
926
                         if(Parameter_GlobalConfig & CFG_HEADING_HOLD) HoTT_printf_BLINK("HH! ");
915
                         if(!(Parameter_GlobalConfig & CFG_KOMPASS_AKTIV)) HoTT_printf_BLINK("COMPASS OFF! ");
927
                         if(!(Parameter_GlobalConfig & CFG_KOMPASS_AKTIV)) HoTT_printf_BLINK("COMPASS OFF! ");
916
                        }
928
                        }
917
                        break;
929
                        break;
Line 1080... Line 1092...
1080
                        if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page++; line = 0;}
1092
                        if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page++; line = 0;}
1081
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page--; line = 0;};
1093
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page--; line = 0;};
1082
                        HottKeyboard = 0;
1094
                        HottKeyboard = 0;
1083
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1095
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1084
// Bedienung per Taster am Sender
1096
// Bedienung per Taster am Sender
1085
  if(PPM_in[EE_Parameter.MenuKeyChannel] > 120)  // 
1097
  if(PPM_in[EE_Parameter.MenuKeyChannel] > 50)  // 
1086
   {
1098
   {
1087
    hyterese = 2;
1099
    hyterese = 2;
1088
    if(CheckDelay(delay)) { wp_tmp = 0; hyterese = 1;}
1100
    if(CheckDelay(delay)) { wp_tmp = 0; hyterese = 1;}
1089
   }
1101
   }
1090
  else
1102
  else
1091
  if(PPM_in[EE_Parameter.MenuKeyChannel] < 100)  
1103
  if(PPM_in[EE_Parameter.MenuKeyChannel] < -50)  
1092
   {
1104
   {
1093
        delay = SetDelay(2500);
1105
        delay = SetDelay(2500);
1094
        if(hyterese == 2 && (wp_tmp < NaviData_MaxWpListIndex))
1106
        if(hyterese == 2 && (wp_tmp < NaviData_MaxWpListIndex))
1095
         {
1107
         {
1096
          wp_tmp++;
1108
          wp_tmp++;
Line 1161... Line 1173...
1161
                        if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page++; line = 0;}
1173
                        if(HottKeyboard == HOTT_KEY_LEFT) { LIBFC_HoTT_Clear(); page++; line = 0;}
1162
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page--; line = 0;};
1174
                        if(HottKeyboard == HOTT_KEY_RIGHT) { LIBFC_HoTT_Clear(); page--; line = 0;};
1163
                        HottKeyboard = 0;
1175
                        HottKeyboard = 0;
1164
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1176
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1165
// Bedienung per Taster am Sender
1177
// Bedienung per Taster am Sender
1166
  if(PPM_in[EE_Parameter.MenuKeyChannel] > 120)  // 
1178
  if(PPM_in[EE_Parameter.MenuKeyChannel] > 50)  // 
1167
   {
1179
   {
1168
    hyterese = 2;
1180
    hyterese = 2;
1169
    if(CheckDelay(delay)) { wp_tmp = 0; hyterese = 1;}
1181
    if(CheckDelay(delay)) { wp_tmp = 0; hyterese = 1;}
1170
   }
1182
   }
1171
  else
1183
  else
1172
  if(PPM_in[EE_Parameter.MenuKeyChannel] < 100)  
1184
  if(PPM_in[EE_Parameter.MenuKeyChannel] < -50)  
1173
   {
1185
   {
1174
        delay = SetDelay(2500);
1186
        delay = SetDelay(2500);
1175
        if(hyterese == 2 && (wp_tmp < NaviData_MaxWpListIndex))
1187
        if(hyterese == 2 && (wp_tmp < NaviData_MaxWpListIndex))
1176
         {
1188
         {
1177
          wp_tmp++;
1189
          wp_tmp++;