Subversion Repositories FlightCtrl

Rev

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

Rev 2342 Rev 2384
Line 70... Line 70...
70
//############################################################################
70
//############################################################################
71
{
71
{
72
 unsigned char i;
72
 unsigned char i;
73
 for(i=0;i<MAX_RC_IN;i++)
73
 for(i=0;i<MAX_RC_IN;i++)
74
  {
74
  {
75
   if(i < 5) PPM_in[i] = 0; else PPM_in[i] = -127;
75
   //if(i < 5) PPM_in[i] = 0; else PPM_in[i] = -127; // MartinR: so war es
-
 
76
   if((i < 5)||((i>16) & (i<25))) PPM_in[i] = 0; else PPM_in[i] = -127; // MartinR: Initialisierung der seriellen Kanäle auf 0
76
   PPM_diff[i] = 0;
77
   PPM_diff[i] = 0;
77
  }
78
  }
78
        PPM_in[PPM_IN_MAX] = +127;
79
        PPM_in[PPM_IN_MAX] = +127;
79
        PPM_in[PPM_IN_OFF] = -127;
80
        PPM_in[PPM_IN_OFF] = -127;
80
        PPM_in[PPM_IN_MID] = 0;
81
        PPM_in[PPM_IN_MID] = 0;