Subversion Repositories FlightCtrl

Rev

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

Rev 2032 Rev 2092
Line 8... Line 8...
8
void gyro_init(void) {
8
void gyro_init(void) {
9
  // No amplifiers, no DAC.
9
  // No amplifiers, no DAC.
10
}
10
}
Line 11... Line 11...
11
 
11
 
12
void gyro_setDefaultParameters(void) {
12
void gyro_setDefaultParameters(void) {
13
  staticParams.accQuadrant = 4;
13
  IMUConfig.accQuadrant = 4;
14
  staticParams.imuReversedFlags = IMU_REVERSE_ACC_XY;
14
  IMUConfig.imuReversedFlags = IMU_REVERSE_ACC_XY;
15
  staticParams.gyroD = 5;
15
  staticParams.gyroD = 5;
16
  staticParams.driftCompDivider = 1;
16
  IMUConfig.driftCompDivider = 1;
17
  staticParams.driftCompLimit = 3;
17
  IMUConfig.driftCompLimit = 3;
18
  staticParams.zerothOrderCorrection = 1;
18
  IMUConfig.zerothOrderCorrection = 1;