Rev 1910 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1910 | Rev 2025 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /* |
7 | /* |
8 | * Configuration for my prototype board with InvenSense gyros. |
8 | * Configuration for my prototype board with InvenSense gyros. |
9 | * The FC 1.3 board is installed upside down, therefore Z acc is reversed but not roll. |
9 | * The FC 1.3 board is installed upside down, therefore Z acc is reversed but not roll. |
10 | */ |
- | |
11 | const uint8_t GYRO_REVERSED[3] = { 0, 0, 0 }; |
- | |
12 | const uint8_t ACC_REVERSED[3] = { 0, 0, 1 }; |
10 | */ |
Line 13... | Line 11... | ||
13 | const uint8_t AXIS_TRANSFORM = 0; |
11 | PR_GYROS_ORIENTATION_REVERSED = 0; |
14 | 12 | ||
15 | #define AUTOZERO_PORT PORTD |
13 | #define AUTOZERO_PORT PORTD |
Line 32... | Line 30... | ||
32 | // Delay_ms(10); |
30 | // Delay_ms(10); |
33 | delay_ms_Mess(100); |
31 | delay_ms_Mess(100); |
34 | } |
32 | } |
Line 35... | Line 33... | ||
35 | 33 | ||
36 | void gyro_setDefaults(void) { |
34 | void gyro_setDefaults(void) { |
37 | staticParams.GyroAccFactor = 1; |
35 | staticParams.zerothOrderGyroCorrectionFactorx1000 = 1; |
38 | staticParams.DriftComp = 3; |
36 | staticParams.secondOrderGyroCorrectionDivisor = 2; |
39 | staticParams.GyroAccTrim = 2; |
37 | staticParams.secondOrderGyroCorrectionLimit = 3; |