Subversion Repositories FlightCtrl

Rev

Rev 1739 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1739 Rev 1756
Line 25... Line 25...
25
        static unsigned char J17Bitmask = 0;
25
        static unsigned char J17Bitmask = 0;
26
        static unsigned char J16Warn = 0, J17Warn = 0;
26
        static unsigned char J16Warn = 0, J17Warn = 0;
27
        if(!delay--)  // 10ms Intervall
27
        if(!delay--)  // 10ms Intervall
28
        {
28
        {
29
        delay = 4;
29
        delay = 4;
-
 
30
       
-
 
31
       
-
 
32
        if(EE_Parameter.UserParam8 >0)  // 2ms Intervall ///
-
 
33
        {
-
 
34
        delay = 0;
-
 
35
        }
-
 
36
 
-
 
37
 
Line 30... Line 38...
30
 
38
 
31
        if(FCFlags & (FCFLAG_LOWBAT | FCFLAG_NOTLANDUNG | FCFLAG_I2CERR))
39
        if(FCFlags & (FCFLAG_LOWBAT | FCFLAG_NOTLANDUNG | FCFLAG_I2CERR))
32
        {
40
        {
33
                if(EE_Parameter.WARN_J16_Bitmask)
41
                if(EE_Parameter.WARN_J16_Bitmask)
Line 53... Line 61...
53
  {
61
  {
54
  if((EE_Parameter.BitConfig & CFG_MOTOR_BLINK) && !MotorenEin) {if(EE_Parameter.BitConfig & CFG_MOTOR_OFF_LED1) J16_ON; else J16_OFF;}
62
  if((EE_Parameter.BitConfig & CFG_MOTOR_BLINK) && !MotorenEin) {if(EE_Parameter.BitConfig & CFG_MOTOR_OFF_LED1) J16_ON; else J16_OFF;}
55
  else
63
  else
56
  if((EE_Parameter.J16Timing > 247) && (Parameter_J16Timing > 220)) {if(J16Bitmask & 128) J16_ON; else J16_OFF;}
64
  if((EE_Parameter.J16Timing > 247) && (Parameter_J16Timing > 220)) {if(J16Bitmask & 128) J16_ON; else J16_OFF;}
57
  else
65
  else
58
  if((EE_Parameter.J16Timing > 247) && (Parameter_J16Timing < 10))  {if(J16Bitmask & 128) J16_OFF; else J16_ON;}
66
 //if((EE_Parameter.J16Timing > 247) && (Parameter_J16Timing < 10))  {if(J16Bitmask & 128) J16_OFF; else J16_ON;} //original
-
 
67
  if((EE_Parameter.J16Timing > 247) && (Parameter_J16Timing < 2))  {if(J16Bitmask & 128) J16_OFF; else J16_ON;} //bei <10 reagiert gar nicht mehr, bei mir ist "2" i.o.
59
  else
68
  else
60
  if(!J16Blinkcount--)
69
  if(!J16Blinkcount--)
61
   {
70
   {
62
     J16Blinkcount = Parameter_J16Timing-1;
71
     J16Blinkcount = Parameter_J16Timing-1;
63
     if(J16Mask == 1) J16Mask = 128; else J16Mask /= 2;
72
     if(J16Mask == 1) J16Mask = 128; else J16Mask /= 2;