Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 1622 → Rev 1623

/dongfang_FC_rewrite_tool/configsets/config.xml
File deleted
/dongfang_FC_rewrite_tool/configsets/fixedwing_config.xml
File deleted
/dongfang_FC_rewrite_tool/configsets/FC2.0_Quadcopter.xml
New file
0,0 → 1,154
<parameterset eepromVersion="4" length="73" name="hundeprut">
<parameter name="bitConfig">
<bit name="CFG_SIMPLE_HEIGHT_CONTROL" value="1" />
<bit name="CFG_SIMPLE_HC_HOLD_SWITCH" value="1" />
<bit name="CFG_HEADING_HOLD" value="0" />
<bit name="CFG_COMPASS_ENABLED" value="1" />
<bit name="CFG_UNUSED" value="0" />
<bit name="CFG_NAVI_ENABLED" value="1" />
<bit name="CFG_AXIS_COUPLING_ENABLED" value="0" />
<bit name="CFG_GYRO_SATURATION_PREVENTION" value="1" />
</parameter>
 
<parameter name="levelCorrectionPitch" value="var1" />
<parameter name="levelCorrectionRoll" value="var2" />
 
<parameter name="gyroP" value="80" />
<parameter name="gyroI" value="60" />
<parameter name="gyroD" value="15" />
<parameter name="attitudeControl" value="0" />
<parameter name="stickP" value="10" />
<parameter name="stickD" value="2" />
<parameter name="stickYawP" value="8" />
<parameter name="stickThrottleD" value="4" />
<parameter name="minThrottle" value="4" />
<parameter name="maxThrottle" value="220" />
<parameter name="externalControl" value="0" />
<parameter name="motorSmoothing" value="0" />
<parameter name="dynamicStability" value="50" />
<parameter name="IFactor" value="0" />
<parameter name="yawIFactor" value="50" />
<parameter name="compassMode" value="0" />
<parameter name="compassYawCorrection" value="20" />
<parameter name="compassBendingReturnSpeed" value="16" />
<parameter name="compassP" value="50" />
<parameter name="batteryVoltageWarning" value="100" />
<parameter name="emergencyThrottle" value="40" />
<parameter name="emergencyFlightDuration" value="30" />
 
<parameter name="airpressureFilterConstant" value="8" />
<parameter name="airpressureWindowLength" value="0" />
<parameter name="airpressureDWindowLength" value="24" />
<parameter name="airpressureAccZCorrection" value="0" /> <!-- 184 for my 2.0 board. -->
<parameter name="heightP" value="110" />
<parameter name="heightI" value="90" />
<parameter name="heightD" value="25" /> <!-- 30 -->
<parameter name="heightSetting" value="var0" />
<parameter name="heightControlMaxIntegralIn" value="125" />
<parameter name="heightControlMaxIntegralOut" value="75" />
<parameter name="heightMaxThrottleChange" value="75" />
 
<parameter name="heightControlTestOscPeriod" value="0" />
<parameter name="heightControlTestOscAmplitude" value="0" />
 
<parameter name="servoCount" value="7" />
<parameter name="servoManualMaxSpeed" value="10" />
<parameter name="pitchServoControl" value="128" />
<parameter name="pitchServoStabilization" value="200" />
<parameter name="pitchServoMinValue" value="32" />
<parameter name="pitchServoMaxValue" value="224" />
<parameter name="pitchServoFlags">
<bit name="reverseStabilization" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
</parameter>
<parameter name="rollServoControl" value="128" />
<parameter name="rollServoStabilization" value="200" />
<parameter name="rollServoMinValue" value="32" />
<parameter name="rollServoMaxValue" value="224" />
<parameter name="rollServoFlags">
<bit name="reverseStabilization" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
<bit name="Unused" value="0" />
</parameter>
 
<parameter name="output0BitMask">
<bit name="t0" value="1" />
<bit name="t1" value="0" />
<bit name="t2" value="0" />
<bit name="t3" value="0" />
<bit name="t4" value="0" />
<bit name="t5" value="0" />
<bit name="t6" value="0" />
<bit name="t7" value="0" />
</parameter>
<parameter name="output0Timing" value="15" />
<parameter name="output1BitMask">
<bit name="t0" value="1" />
<bit name="t1" value="0" />
<bit name="t2" value="0" />
<bit name="t3" value="0" />
<bit name="t4" value="0" />
<bit name="t5" value="0" />
<bit name="t6" value="0" />
<bit name="t7" value="0" />
</parameter>
<parameter name="output1Timing" value="14" />
<parameter name="outputDebugMask">
<bit name="DEBUG_MAINLOOP_TIMER" value="0" />
<bit name="DEBUG_HEIGHT_DIFF" value="0" />
<bit name="DEBUG_HOVERTHROTTLE" value="0" />
<bit name="DEBUG_ACC0THORDER" value="1" />
<bit name="DEBUG_COMPASS" value="0" />
<bit name="DEBUG_PRESSURERANGE" value="0" />
<bit name="DEBUG_CLIP" value="0" />
<bit name="DEBUG_SENSORLIMIT" value="0" />
</parameter>
<parameter name="outputFlags">
<bit name="INVERT_OUTPUT0" value="0" />
<bit name="INVERT_OUTPUT1" value="0" />
<bit name="FLASH_OUTPUT0_BEEPING" value="1" />
<bit name="FLASH_OUTPUT1_BEEPING" value="1" />
<bit name="USE_ONBOARD_LEDS" value="1" />
<bit name="TEST_OFF" value="0" />
<bit name="TEST_ON" value="0" />
<bit name="UNUSED" value="0" />
</parameter>
 
<parameter name="naviMode" value="var0" />
<parameter name="naviStickThreshold" value="50" />
<parameter name="naviStickLimit" value="80" />
<parameter name="GPSMinimumSatellites" value="6" />
<parameter name="naviP" value="30" />
<parameter name="naviI" value="120" />
<parameter name="naviD" value="65" />
 
<parameter name="naviTestOscPeriod" value="30" />
<parameter name=" naviTestOscAmplitude" value="30" />
 
<parameter name="userparam0" value="0" />
<parameter name="userparam1" value="0" />
<parameter name="userparam2" value="0" />
<parameter name="userparam3" value="0" />
<parameter name="userparam4" value="0" />
<parameter name="userparam5" value="0" />
<parameter name="userparam6" value="0" />
<parameter name="userparam7" value="0" />
</parameterset>
/dongfang_FC_rewrite_tool/configsets/T28_Trojan_config.xml
New file
0,0 → 1,128
<parameterset eepromVersion="100" length="50">
<parameter name="bitConfig">
<bit name="CFG_GYRO_SATURATION_PREVENTION" value="1"/>
<bit name="CFG_USE_AIRSPEED_PID" value="0"/>
<bit name="unused" value="0"/>
<bit name="unused" value="0"/>
<bit name="unused" value="0"/>
<bit name="unused" value="0"/>
<bit name="unused" value="0"/>
<bit name="unused" value="0"/>
</parameter>
<parameter name="pitchGyroP" value="var1"/>
<parameter name="pitchGyroI" value="80"/>
<parameter name="pitchGyroD" value="40"/>
<parameter name="pitchGyroIMax" value="45"/>
 
<parameter name="rollGyroP" value="var2"/>
<parameter name="rollGyroI" value="60"/>
<parameter name="rollGyroD" value="40"/>
<parameter name="rollGyroIMax" value="45"/>
 
<parameter name="yawGyroP" value="200"/>
<parameter name="yawGyroI" value="80"/>
<parameter name="yawGyroD" value="40"/>
<parameter name="yawGyroIMax" value="45"/>
 
<parameter name="stickIElevator" value="40"/>
<parameter name="stickIAilerons" value="60"/>
<parameter name="stickIRudder" value="20"/>
<parameter name="IFactor" value="52"/>
<parameter name="externalControl" value="0"/>
<parameter name="batteryWarningVoltage" value="101"/>
<parameter name="airspeedCorrention" value="100"/>
<parameter name="isFlyingThreshold" value="100"/>
<parameter name="servoCount" value="7"/>
<parameter name="servosReverse">
<bit name="reverseElevator" value="1"/>
<bit name="reverseAilerons" value="0"/>
<bit name="reverserudder" value="1"/>
<bit name="reverseThrottle" value="0"/>
<bit name="reverseFeatured0" value="0"/>
<bit name="reverseFeatured1" value="0"/>
<bit name="reverseFeatured2" value="0"/>
<bit name="reverseFeatured3" value="0"/>
</parameter>
<parameter name="controlServoMinValue" value="255"/>
<parameter name="controlServoMaxValue" value="255"/>
<parameter name="gimbalServoMaxManualSpeed" value="10"/>
<parameter name="gimbalPitchServoControl" value="128"/>
<parameter name="gimbalPitchServoStabilization" value="0"/>
<parameter name="gimbalPitchServoMinValue" value="32"/>
<parameter name="gimbalPitchServoMaxValue" value="224"/>
<parameter name="gimbalPitchServoFlags">
<bit name="reverseStabilization" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
</parameter>
<parameter name="gimbalRollServoControl" value="128"/>
<parameter name="gimbalRollServoStabilization" value="0"/>
<parameter name="gimbalRollServoMinValue" value="32"/>
<parameter name="gimbalRollServoMaxValue" value="224"/>
<parameter name="gimbalRollServoFlags">
<bit name="reverseStabilization" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
</parameter>
<parameter name="output0BitMask">
<bit name="t0" value="1"/>
<bit name="t1" value="0"/>
<bit name="t2" value="0"/>
<bit name="t3" value="0"/>
<bit name="t4" value="0"/>
<bit name="t5" value="0"/>
<bit name="t6" value="0"/>
<bit name="t7" value="0"/>
</parameter>
<parameter name="output0Timing" value="15"/>
<parameter name="output1BitMask">
<bit name="t0" value="1"/>
<bit name="t1" value="0"/>
<bit name="t2" value="1"/>
<bit name="t3" value="0"/>
<bit name="t4" value="1"/>
<bit name="t5" value="0"/>
<bit name="t6" value="1"/>
<bit name="t7" value="0"/>
</parameter>
<parameter name="output1Timing" value="15"/>
<parameter name="outputDebugMask">
<bit name="DEBUG_MAINLOOP_TIMER" value="0"/>
<bit name="DEBUG_HEIGHT_DIFF" value="0"/>
<bit name="DEBUG_HOVERTHROTTLE" value="0"/>
<bit name="DEBUG_ACC0THORDER" value="0"/>
<bit name="DEBUG_SIGNAL" value="0"/>
<bit name="DEBUG_PRESSURERANGE" value="0"/>
<bit name="DEBUG_CLIP" value="0"/>
<bit name="DEBUG_SENSORLIMIT" value="0"/>
</parameter>
<parameter name="outputFlags">
<bit name="INVERT_OUTPUT0" value="0"/>
<bit name="INVERT_OUTPUT1" value="0"/>
<bit name="FLASH_OUTPUT0_BEEPING" value="1"/>
<bit name="FLASH_OUTPUT1_BEEPING" value="1"/>
<bit name="USE_ONBOARD_LEDS" value="1"/>
<bit name="TEST_OFF" value="0"/>
<bit name="TEST_ON" value="0"/>
<bit name="UNUSED" value="0"/>
</parameter>
<parameter name="userparam0" value="0"/>
<parameter name="userparam1" value="1"/>
<parameter name="userparam2" value="2"/>
<parameter name="userparam3" value="3"/>
<parameter name="userparam4" value="4"/>
<parameter name="userparam5" value="5"/>
<parameter name="userparam6" value="6"/>
<parameter name="userparam7" value="7"/>
</parameterset>
 
/dongfang_FC_rewrite_tool/configsets/Extra_330_config.xml
New file
0,0 → 1,128
<parameterset eepromVersion="100" length="50">
<parameter name="bitConfig">
<bit name="CFG_GYRO_SATURATION_PREVENTION" value="1"/>
<bit name="CFG_USE_AIRSPEED_PID" value="0"/>
<bit name="unused" value="0"/>
<bit name="unused" value="0"/>
<bit name="unused" value="0"/>
<bit name="unused" value="0"/>
<bit name="unused" value="0"/>
<bit name="unused" value="0"/>
</parameter>
<parameter name="pitchGyroP" value="var1"/>
<parameter name="pitchGyroI" value="80"/>
<parameter name="pitchGyroD" value="40"/>
<parameter name="pitchGyroIMax" value="45"/>
 
<parameter name="rollGyroP" value="var2"/>
<parameter name="rollGyroI" value="60"/>
<parameter name="rollGyroD" value="40"/>
<parameter name="rollGyroIMax" value="45"/>
 
<parameter name="yawGyroP" value="200"/>
<parameter name="yawGyroI" value="80"/>
<parameter name="yawGyroD" value="40"/>
<parameter name="yawGyroIMax" value="45"/>
 
<parameter name="stickIElevator" value="40"/>
<parameter name="stickIAilerons" value="60"/>
<parameter name="stickIRudder" value="20"/>
<parameter name="IFactor" value="52"/>
<parameter name="externalControl" value="0"/>
<parameter name="batteryWarningVoltage" value="101"/>
<parameter name="airspeedCorrention" value="100"/>
<parameter name="isFlyingThreshold" value="100"/>
<parameter name="servoCount" value="7"/>
<parameter name="servosReverse">
<bit name="reverseElevator" value="1"/>
<bit name="reverseAilerons" value="0"/>
<bit name="reverserudder" value="1"/>
<bit name="reverseThrottle" value="0"/>
<bit name="reverseFeatured0" value="0"/>
<bit name="reverseFeatured1" value="0"/>
<bit name="reverseFeatured2" value="0"/>
<bit name="reverseFeatured3" value="0"/>
</parameter>
<parameter name="controlServoMinValue" value="255"/>
<parameter name="controlServoMaxValue" value="255"/>
<parameter name="gimbalServoMaxManualSpeed" value="10"/>
<parameter name="gimbalPitchServoControl" value="128"/>
<parameter name="gimbalPitchServoStabilization" value="0"/>
<parameter name="gimbalPitchServoMinValue" value="32"/>
<parameter name="gimbalPitchServoMaxValue" value="224"/>
<parameter name="gimbalPitchServoFlags">
<bit name="reverseStabilization" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
</parameter>
<parameter name="gimbalRollServoControl" value="128"/>
<parameter name="gimbalRollServoStabilization" value="0"/>
<parameter name="gimbalRollServoMinValue" value="32"/>
<parameter name="gimbalRollServoMaxValue" value="224"/>
<parameter name="gimbalRollServoFlags">
<bit name="reverseStabilization" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
<bit name="Unused" value="0"/>
</parameter>
<parameter name="output0BitMask">
<bit name="t0" value="1"/>
<bit name="t1" value="0"/>
<bit name="t2" value="0"/>
<bit name="t3" value="0"/>
<bit name="t4" value="0"/>
<bit name="t5" value="0"/>
<bit name="t6" value="0"/>
<bit name="t7" value="0"/>
</parameter>
<parameter name="output0Timing" value="15"/>
<parameter name="output1BitMask">
<bit name="t0" value="1"/>
<bit name="t1" value="0"/>
<bit name="t2" value="1"/>
<bit name="t3" value="0"/>
<bit name="t4" value="1"/>
<bit name="t5" value="0"/>
<bit name="t6" value="1"/>
<bit name="t7" value="0"/>
</parameter>
<parameter name="output1Timing" value="15"/>
<parameter name="outputDebugMask">
<bit name="DEBUG_MAINLOOP_TIMER" value="0"/>
<bit name="DEBUG_HEIGHT_DIFF" value="0"/>
<bit name="DEBUG_HOVERTHROTTLE" value="0"/>
<bit name="DEBUG_ACC0THORDER" value="0"/>
<bit name="DEBUG_SIGNAL" value="0"/>
<bit name="DEBUG_PRESSURERANGE" value="0"/>
<bit name="DEBUG_CLIP" value="0"/>
<bit name="DEBUG_SENSORLIMIT" value="0"/>
</parameter>
<parameter name="outputFlags">
<bit name="INVERT_OUTPUT0" value="0"/>
<bit name="INVERT_OUTPUT1" value="0"/>
<bit name="FLASH_OUTPUT0_BEEPING" value="1"/>
<bit name="FLASH_OUTPUT1_BEEPING" value="1"/>
<bit name="USE_ONBOARD_LEDS" value="1"/>
<bit name="TEST_OFF" value="0"/>
<bit name="TEST_ON" value="0"/>
<bit name="UNUSED" value="0"/>
</parameter>
<parameter name="userparam0" value="0"/>
<parameter name="userparam1" value="1"/>
<parameter name="userparam2" value="2"/>
<parameter name="userparam3" value="3"/>
<parameter name="userparam4" value="4"/>
<parameter name="userparam5" value="5"/>
<parameter name="userparam6" value="6"/>
<parameter name="userparam7" value="7"/>
</parameterset>
 
/dongfang_FC_rewrite_tool/src/dongfang/mkt/main/UniversalConfigurator.java
File deleted
\ No newline at end of file
/dongfang_FC_rewrite_tool/src/dongfang/mkt/main/ParameterSetConfigurator.java
237,9 → 237,9
 
static void help() {
System.err
.println("Usage: UniversalConfigurator r [parameter set number to read from] [filename to write to]");
.println("Usage: ParameterSetConfigurator r [parameter set number to read from] [filename to write to]");
System.err
.println("Usage: UniversalConfigurator w [parameter set number to write to] [filename to read from]");
.println("Usage: ParameterSetConfigurator w [parameter set number to write to] [filename to read from]");
System.exit(-1);
}