Rev 1955 | Rev 1964 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1955 | Rev 1960 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | printf("\r\n DAC or I2C Error! check I2C, 3Vref, DAC, and BL-Ctrl"); |
54 | printf("\r\n DAC or I2C Error! check I2C, 3Vref, DAC, and BL-Ctrl"); |
55 | break; |
55 | break; |
56 | } |
56 | } |
57 | } |
57 | } |
Line 58... | Line -... | ||
58 | - | ||
59 | startAnalogConversionCycle(); |
58 | |
60 | delay_ms_Mess(i < 10 ? 10 : 2); |
59 | delay_ms_Mess(i < 10 ? 10 : 2); |
61 | } |
60 | } |
62 | delay_ms_Mess(70); |
61 | delay_ms_Mess(70); |
Line 63... | Line 62... | ||
63 | } |
62 | } |
64 | 63 | ||
65 | void gyro_setDefaults(void) { |
64 | void gyro_setDefaults(void) { |
66 | staticParams.GyroD = 3; |
65 | staticParams.gyroD = 3; |
67 | staticParams.DriftComp = 200; |
66 | staticParams.driftCompDivider = 1; |
68 | staticParams.GyroAccFactor = 25; |
67 | staticParams.driftCompLimit = 200; |