/branches/dongfang_FC_fixedwing/arduino_atmega328/configuration.c |
---|
85,7 → 85,7 |
staticParams.externalControl = 0; |
staticParams.IFactor = 52; |
staticParams.airspeedCorrection = 100; |
staticParams.airspeedCorrection = 1; |
staticParams.isFlyingThreshold = 100; |
// Servos |
158,7 → 158,7 |
/***************************************************/ |
void channelMap_default(void) { |
channelMap.RCPolarity = 1; |
channelMap.HWTrim = 166; |
channelMap.HWTrim = 110; |
channelMap.variableOffset = 131; |
channelMap.channels[CH_ELEVATOR] = 1; |
channelMap.channels[CH_AILERONS] = 0; |
/branches/dongfang_FC_fixedwing/configuration.c |
---|
191,15 → 191,17 |
} |
void IMUConfig_default(void) { |
IMUConfig.gyroPIDFilterConstant = 1; |
IMUConfig.gyroPIDFilterConstant = 8; |
IMUConfig.gyroDFilterConstant = 1; |
IMUConfig.rateTolerance = 120; |
IMUConfig.gyroDWindowLength = 3; |
IMUConfig.gyroQuadrant = 2; |
IMUConfig.imuReversedFlags = 0; |
IMUConfig.gyroCalibrationTweak[0] = |
IMUConfig.gyroCalibrationTweak[1] = |
IMUConfig.gyroCalibrationTweak[2] = 0; |
gyro_setDefaultParameters(); |
} |
207,7 → 209,9 |
/* Default Values for R/C Channels */ |
/***************************************************/ |
void channelMap_default(void) { |
channelMap.channels[CH_ELEVATOR] = 1; |
channelMap.HWTrim = 178; |
channelMap.variableOffset = 128; |
channelMap.channels[CH_ELEVATOR] = 1; |
channelMap.channels[CH_AILERONS] = 0; |
channelMap.channels[CH_THROTTLE] = 2; |
channelMap.channels[CH_RUDDER] = 3; |
/branches/dongfang_FC_fixedwing/main.c |
---|
37,7 → 37,8 |
// disable interrupts global |
cli(); |
wdt_enable(WDTO_120MS); |
// wdt_enable(WDTO_120MS); |
wdt_disable(); |
// analyze hardware environment |
setCPUType(); |
/branches/dongfang_FC_fixedwing/uart0.c |
---|
112,8 → 112,8 |
"Profile 3 ", |
"Profile total ", |
" ", |
" ", //30 |
"RCQuality " |
"Var0 ", //30 |
"Var1 " |
}; |
/****************************************************************/ |
667,6 → 667,10 |
if (request_variables && txd_complete) { |
sendOutData('X', FC_ADDRESS, 1, (uint8_t *) &variables, sizeof(variables)); |
debugOut.analog[28] = channelMap.HWTrim; |
debugOut.analog[29] = channelMap.variableOffset; |
debugOut.analog[30] = variables[0]; |
debugOut.analog[31] = variables[1]; |
request_variables = FALSE; |
} |