Rev 2160 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2160 | Rev 2189 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | void gyro_init(void) { |
7 | void gyro_init(void) { |
8 | // No amplifiers, no DAC. |
8 | // No amplifiers, no DAC. |
9 | } |
9 | } |
Line 10... | Line 10... | ||
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 | IMUConfig.driftCompDivider = 2; |
- | |
16 | IMUConfig.driftCompLimit = 3; |
- | |
17 | IMUConfig.zerothOrderCorrection = 3; |
15 | // staticParams.gyroD = 5; |