Subversion Repositories FlightCtrl

Rev

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

Rev 2097 Rev 2112
Line 561... Line 561...
561
  }
561
  }
Line 562... Line 562...
562
 
562
 
563
  // Noise is relative to offset. So, reset noise measurements when changing offsets.
563
  // Noise is relative to offset. So, reset noise measurements when changing offsets.
564
  for (uint8_t i=PITCH; i<=ROLL; i++) {
564
  for (uint8_t i=PITCH; i<=ROLL; i++) {
565
          gyroNoisePeak[i] = 0;
-
 
566
          accNoisePeak[i] = 0;
565
          gyroNoisePeak[i] = 0;
567
          gyroD[i] = 0;
566
          gyroD[i] = 0;
568
          for (uint8_t j=0; j<GYRO_D_WINDOW_LENGTH; j++) {
567
          for (uint8_t j=0; j<GYRO_D_WINDOW_LENGTH; j++) {
569
                  gyroDWindow[i][j] = 0;
568
                  gyroDWindow[i][j] = 0;
570
          }
569
          }