Rev 2032 | Rev 2112 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1612 | dongfang | 1 | #include "ADXRS610_FC2.0.h" |
2 | #include "configuration.h" |
||
3 | |||
1821 | - | 4 | void gyro_calibrate(void) { |
1965 | - | 5 | // Nothing to calibrate. |
1821 | - | 6 | } |
1612 | dongfang | 7 | |
2032 | - | 8 | void gyro_init(void) { |
1971 | - | 9 | // No amplifiers, no DAC. |
10 | } |
||
11 | |||
12 | void gyro_setDefaultParameters(void) { |
||
2092 | - | 13 | IMUConfig.accQuadrant = 4; |
14 | IMUConfig.imuReversedFlags = IMU_REVERSE_ACC_XY; |
||
1960 | - | 15 | staticParams.gyroD = 5; |
2092 | - | 16 | IMUConfig.driftCompDivider = 1; |
17 | IMUConfig.driftCompLimit = 3; |
||
18 | IMUConfig.zerothOrderCorrection = 1; |
||
1612 | dongfang | 19 | } |