Subversion Repositories FlightCtrl

Rev

Rev 2132 | Rev 2136 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2132 Rev 2135
Line 88... Line 88...
88
  staticParams.airspeedCorrection = 100;
88
  staticParams.airspeedCorrection = 100;
89
  staticParams.isFlyingThreshold = 100;
89
  staticParams.isFlyingThreshold = 100;
Line 90... Line 90...
90
 
90
 
91
  // Servos
91
  // Servos
92
  staticParams.servoCount = 7;
92
  staticParams.servoCount = 7;
Line 93... Line 93...
93
  staticParams.servosReverse = CONTROL_SERVO_REVERSE_ELEVATOR | CONTROL_SERVO_REVERSE_RUDDER;
93
  staticParams.servosReverse = CONTROL_SERVO_REVERSE_AILERONS;
94
 
94
 
95
  staticParams.gimbalServoMaxManualSpeed = 10;
95
  staticParams.gimbalServoMaxManualSpeed = 10;
96
  for (uint8_t i=0; i<2; i++) {
96
  for (uint8_t i=0; i<2; i++) {
Line 144... Line 144...
144
void IMUConfig_default(void) {
144
void IMUConfig_default(void) {
145
  IMUConfig.gyroPIDFilterConstant = 1;
145
  IMUConfig.gyroPIDFilterConstant = 1;
146
  IMUConfig.gyroDFilterConstant = 1;
146
  IMUConfig.gyroDFilterConstant = 1;
147
  IMUConfig.rateTolerance = 120;
147
  IMUConfig.rateTolerance = 120;
148
  IMUConfig.gyroDWindowLength = 3;
148
  IMUConfig.gyroDWindowLength = 3;
149
  IMUConfig.gyroQuadrant = 0;
149
  IMUConfig.gyroQuadrant = 4;
150
  IMUConfig.imuReversedFlags = 0;
150
  IMUConfig.imuReversedFlags = IMU_REVERSE_GYRO_PR;
151
  IMUConfig.gyroCalibrationTweak[0] =
151
  IMUConfig.gyroCalibrationTweak[0] =
152
  IMUConfig.gyroCalibrationTweak[1] =
152
  IMUConfig.gyroCalibrationTweak[1] =
153
  IMUConfig.gyroCalibrationTweak[2] = 0;
153
  IMUConfig.gyroCalibrationTweak[2] = 0;
154
}
154
}
Line 155... Line 155...
155
 
155
 
156
/***************************************************/
156
/***************************************************/
157
/*    Default Values for R/C Channels              */
157
/*    Default Values for R/C Channels              */
158
/***************************************************/
158
/***************************************************/
159
void channelMap_default(void) {
159
void channelMap_default(void) {
160
  channelMap.RCPolarity = 1;
160
  channelMap.RCPolarity = 1;
161
  channelMap.HWTrim = 192;
161
  channelMap.HWTrim = 166;
162
  channelMap.variableOffset = 128;
162
  channelMap.variableOffset = 131;
163
  channelMap.channels[CH_ELEVATOR] = 1;
163
  channelMap.channels[CH_ELEVATOR] = 1;
164
  channelMap.channels[CH_AILERONS] = 0;
164
  channelMap.channels[CH_AILERONS] = 0;
165
  channelMap.channels[CH_THROTTLE] = 2;
165
  channelMap.channels[CH_THROTTLE] = 2;
166
  channelMap.channels[CH_RUDDER]   = 3;
166
  channelMap.channels[CH_RUDDER]   = 3;