Rev 2132 | Rev 2140 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2132 | Rev 2137 | ||
---|---|---|---|
Line 189... | Line 189... | ||
189 | 189 | ||
190 | memcpy(staticParams.name, "Default\0", 6); |
190 | memcpy(staticParams.name, "Default\0", 6); |
Line 191... | Line 191... | ||
191 | } |
191 | } |
192 | 192 | ||
193 | void IMUConfig_default(void) { |
193 | void IMUConfig_default(void) { |
194 | IMUConfig.gyroPIDFilterConstant = 1; |
194 | IMUConfig.gyroPIDFilterConstant = 8; |
195 | IMUConfig.gyroDFilterConstant = 1; |
195 | IMUConfig.gyroDFilterConstant = 1; |
196 | IMUConfig.rateTolerance = 120; |
196 | IMUConfig.rateTolerance = 120; |
197 | IMUConfig.gyroDWindowLength = 3; |
197 | IMUConfig.gyroDWindowLength = 3; |
- | 198 | IMUConfig.gyroQuadrant = 2; |
|
198 | IMUConfig.gyroQuadrant = 2; |
199 | IMUConfig.imuReversedFlags = 0; |
199 | IMUConfig.imuReversedFlags = 0; |
200 | |
200 | IMUConfig.gyroCalibrationTweak[0] = |
201 | IMUConfig.gyroCalibrationTweak[0] = |
- | 202 | IMUConfig.gyroCalibrationTweak[1] = |
|
201 | IMUConfig.gyroCalibrationTweak[1] = |
203 | IMUConfig.gyroCalibrationTweak[2] = 0; |
202 | IMUConfig.gyroCalibrationTweak[2] = 0; |
204 | |
Line 203... | Line 205... | ||
203 | gyro_setDefaultParameters(); |
205 | gyro_setDefaultParameters(); |
204 | } |
206 | } |
205 | 207 | ||
206 | /***************************************************/ |
208 | /***************************************************/ |
- | 209 | /* Default Values for R/C Channels */ |
|
- | 210 | /***************************************************/ |
|
207 | /* Default Values for R/C Channels */ |
211 | void channelMap_default(void) { |
208 | /***************************************************/ |
212 | channelMap.HWTrim = 178; |
209 | void channelMap_default(void) { |
213 | channelMap.variableOffset = 128; |
210 | channelMap.channels[CH_ELEVATOR] = 1; |
214 | channelMap.channels[CH_ELEVATOR] = 1; |
211 | channelMap.channels[CH_AILERONS] = 0; |
215 | channelMap.channels[CH_AILERONS] = 0; |