Subversion Repositories FlightCtrl

Rev

Rev 2160 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2160 Rev 2189
1
#include "configuration.h"
1
#include "configuration.h"
2
 
2
 
3
void gyro_calibrate(void) {
3
void gyro_calibrate(void) {
4
  // Nothing to calibrate.
4
  // Nothing to calibrate.
5
}
5
}
6
 
6
 
7
void gyro_init(void) {
7
void gyro_init(void) {
8
  // No amplifiers, no DAC.
8
  // No amplifiers, no DAC.
9
}
9
}
10
 
10
 
11
void gyro_setDefaultParameters(void) {
11
void gyro_setDefaultParameters(void) {
-
 
12
  IMUConfig.gyroQuadrant = 4;
12
  IMUConfig.accQuadrant = 4;
13
  IMUConfig.accQuadrant = 4;
13
  IMUConfig.imuReversedFlags = IMU_REVERSE_ACC_XY;
14
  IMUConfig.imuReversedFlags = IMU_REVERSE_ACCEL_Z;
14
  staticParams.gyroD = 5;
15
  // staticParams.gyroD = 5;
15
  IMUConfig.driftCompDivider = 2;
-
 
16
  IMUConfig.driftCompLimit = 3;
-
 
17
  IMUConfig.zerothOrderCorrection = 3;
-
 
18
}
16
}
19
 
17