Rev 2018 | Rev 2092 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2018 | Rev 2032 | ||
---|---|---|---|
1 | #include "ADXRS610_FC2.0.h" |
1 | #include "ADXRS610_FC2.0.h" |
2 | #include "configuration.h" |
2 | #include "configuration.h" |
3 | 3 | ||
4 | void gyro_calibrate(void) { |
4 | void gyro_calibrate(void) { |
5 | // Nothing to calibrate. |
5 | // Nothing to calibrate. |
6 | } |
6 | } |
7 | 7 | ||
8 | void gyro_init() { |
8 | void gyro_init(void) { |
9 | // No amplifiers, no DAC. |
9 | // No amplifiers, no DAC. |
10 | } |
10 | } |
11 | 11 | ||
12 | void gyro_setDefaultParameters(void) { |
12 | void gyro_setDefaultParameters(void) { |
- | 13 | staticParams.accQuadrant = 4; |
|
- | 14 | staticParams.imuReversedFlags = IMU_REVERSE_ACC_XY; |
|
13 | staticParams.gyroD = 5; |
15 | staticParams.gyroD = 5; |
14 | staticParams.driftCompDivider = 1; |
16 | staticParams.driftCompDivider = 1; |
15 | staticParams.driftCompLimit = 3; |
17 | staticParams.driftCompLimit = 3; |
16 | staticParams.zerothOrderCorrection = 1; |
18 | staticParams.zerothOrderCorrection = 1; |
17 | } |
19 | } |
18 | 20 |