Subversion Repositories FlightCtrl

Rev

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

Rev 2370 Rev 2380
Line 55... Line 55...
55
// Output 1
55
// Output 1
56
 if(!J16Warn)    
56
 if(!J16Warn)    
57
  {
57
  {
58
  if((EE_Parameter.BitConfig & CFG_MOTOR_BLINK1) && !MotorenEin) {if(EE_Parameter.BitConfig & CFG_MOTOR_OFF_LED1) J16_ON; else J16_OFF;}
58
  if((EE_Parameter.BitConfig & CFG_MOTOR_BLINK1) && !MotorenEin) {if(EE_Parameter.BitConfig & CFG_MOTOR_OFF_LED1) J16_ON; else J16_OFF;}
59
  else
59
  else
60
  if((EE_Parameter.J16Timing > 247) && (Parameter_J16Timing > 220)) {if(J16Bitmask & 128) J16_ON; else J16_OFF; J16Mask = 1; NC_Wait_for_LED = 0;}  // Manual overwrite
60
  if((EE_Parameter.J16Timing > 247) && (Parameter_J16Timing > 220)) {if(J16Bitmask & 128) J16_OFF; else J16_ON; J16Mask = 1; NC_Wait_for_LED = 0;}  // Manual overwrite
61
  else
61
  else
62
  if((EE_Parameter.J16Timing > 247) && (Parameter_J16Timing == 5))  {if(J16Bitmask & 128) J16_OFF; else J16_ON; J16Mask = 1; NC_Wait_for_LED = 0;}  // Manual overwrite
62
  if((EE_Parameter.J16Timing > 247) && (Parameter_J16Timing == 5))  {if(J16Bitmask & 128) J16_ON; else J16_OFF; J16Mask = 1; NC_Wait_for_LED = 0;}  // Manual overwrite
63
  else
63
  else
64
  if(!J16Blinkcount--)
64
  if(!J16Blinkcount--)
65
   {
65
   {
66
    if(EE_Parameter.GlobalConfig3 & CFG3_USE_NC_FOR_OUT1)
66
    if(EE_Parameter.GlobalConfig3 & CFG3_USE_NC_FOR_OUT1)
67
         {
67
         {
68
          J16Blinkcount = from_nc / 2;
68
          J16Blinkcount = from_nc / 2;
69
          if(!from_nc) { NC_Wait_for_LED = 0; if(J16Bitmask & 128) J16_OFF; else J16_ON; J16Mask = 0; } // Ausschalten
69
          if(!from_nc) { NC_Wait_for_LED = 0; if(J16Bitmask & 128) J16_ON; else J16_OFF; J16Mask = 0; } // Ausschalten
70
          else
70
          else
71
           {
71
           {
72
        NC_Wait_for_LED = 1;
72
        NC_Wait_for_LED = 1;
73
        if(J16Mask == 0)
73
        if(J16Mask == 0)
74
                 {
74
                 {
75
                  from_nc = 0;
75
                  from_nc = 0;
76
//                NC_Wait_for_LED = 0;
-
 
77
                  J16Mask = 128;
76
                  J16Mask = 64;
78
                  if(J16Bitmask & 128) J16_OFF; else J16_ON; // Ausschalten
77
                  if(J16Bitmask & 128) J16_ON; else J16_OFF; // Ausschalten
79
                 }
78
                 }
80
                else
79
                else
81
                 {
80
                 {
82
//if(FromNC_WP_EventChannel != -127)  
81
//if(FromNC_WP_EventChannel != -127)  
83
          if(J16Mask & J16Bitmask) J16_ON; else J16_OFF;
82
          if(J16Mask & J16Bitmask) J16_ON; else J16_OFF;
Line 105... Line 104...
105
 
104
 
106
 if(!J17Warn)
105
 if(!J17Warn)
107
  {
106
  {
108
  if((EE_Parameter.BitConfig & CFG_MOTOR_BLINK2) && !MotorenEin) {if(EE_Parameter.BitConfig & CFG_MOTOR_OFF_LED2) J17_ON; else J17_OFF;}
107
  if((EE_Parameter.BitConfig & CFG_MOTOR_BLINK2) && !MotorenEin) {if(EE_Parameter.BitConfig & CFG_MOTOR_OFF_LED2) J17_ON; else J17_OFF;}
109
  else
108
  else
110
  if((EE_Parameter.J17Timing > 247) && (Parameter_J17Timing > 220)) {if(J17Bitmask & 128) J17_ON; else J17_OFF; J17Mask = 1;}
109
  if((EE_Parameter.J17Timing > 247) && (Parameter_J17Timing > 220)) {if(J17Bitmask & 128) J17_OFF; else J17_ON; J17Mask = 1;}
111
  else
110
  else
112
  if((EE_Parameter.J17Timing > 247) && (Parameter_J17Timing == 5))  {if(J17Bitmask & 128) J17_OFF; else J17_ON; J17Mask = 1;}
111
  if((EE_Parameter.J17Timing > 247) && (Parameter_J17Timing == 5))  {if(J17Bitmask & 128) J17_ON; else J17_OFF; J17Mask = 1;}
113
  else
112
  else
114
  if(!J17Blinkcount--)
113
  if(!J17Blinkcount--)
115
   {
114
   {
116
         J17Blinkcount = Parameter_J17Timing / 2;
115
         J17Blinkcount = Parameter_J17Timing / 2;
117
     if(J17Mask == 1) J17Mask = 128; else J17Mask /= 2;
116
     if(J17Mask == 1) J17Mask = 64; else J17Mask /= 2;
118
     if(J17Mask & J17Bitmask) J17_ON; else J17_OFF;
117
     if(J17Mask & J17Bitmask) J17_OFF; else J17_ON;
119
   }
118
   }
120
  }
119
  }
121
  else  // warning case
120
  else  // warning case
122
  if(!J17Blinkcount--)
121
  if(!J17Blinkcount--)