Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 1632 → Rev 1633

/dongfang_FC_rewrite_tool/xslt/heightControlDebug.xsl
1,6 → 1,12
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/mk-debugdata" >
<debug>
<xsl:apply-templates />
</debug>
</xsl:template>
 
<xsl:template match="*"><xsl:apply-templates /></xsl:template>
 
<xsl:template match="dataset">
14,7 → 20,7
 
<xsl:template match="text()"></xsl:template>
<xsl:template match="data[@offset='20' or @offset='21' or @offset='22' or @offset='23' or @offset='24' or @offset='25' or @offset='26' or @offset='27' or @offset='28' or @offset='29' or @offset='30']">
<xsl:template match="data[@offset='19']">
<xsl:copy><xsl:apply-templates select="@*"/></xsl:copy>
<!-- <xsl:apply-templates select=''/> -->
<xsl:text>
/dongfang_FC_rewrite_tool/configsets/T28_Trojan_config.xml
9,27 → 9,27
<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="0"/>
<parameter name="pitchGyroIMax" value="45"/>
<parameter name="pitchGyroP" value="120"/>
<parameter name="pitchGyroI" value="40"/>
<parameter name="pitchGyroD" value="var1"/>
<parameter name="pitchGyroIMax" value="20"/>
 
<parameter name="rollGyroP" value="var2"/>
<parameter name="rollGyroI" value="60"/>
<parameter name="rollGyroD" value="0"/>
<parameter name="rollGyroIMax" value="45"/>
<parameter name="rollGyroP" value="30"/>
<parameter name="rollGyroI" value="40"/>
<parameter name="rollGyroD" value="var2"/>
<parameter name="rollGyroIMax" value="20"/>
 
<parameter name="yawGyroP" value="200"/>
<parameter name="yawGyroI" value="80"/>
<parameter name="yawGyroD" value="0"/>
<parameter name="yawGyroIMax" value="45"/>
<parameter name="yawGyroIMax" value="20"/>
 
<parameter name="stickIElevator" value="40"/>
<parameter name="stickIAilerons" value="60"/>
<parameter name="stickIRudder" value="20"/>
<parameter name="stickIElevator" value="80"/>
<parameter name="stickIAilerons" value="120"/>
<parameter name="stickIRudder" value="80"/>
<parameter name="IFactor" value="52"/>
<parameter name="externalControl" value="0"/>
<parameter name="batteryWarningVoltage" value="101"/>
<parameter name="batteryWarningVoltage" value="105"/>
 
<parameter name="airspeedCorrention" value="1"/>
<parameter name="isFlyingThreshold" value="100"/>
99,7 → 99,7
</parameter>
<parameter name="output1Timing" value="15"/>
<parameter name="outputDebugMask">
<bit name="DEBUG_MAINLOOP_TIMER" value="0"/>
<bit name="DEBUG_MAINLOOP_TIMER" value="1"/>
<bit name="DEBUG_HEIGHT_DIFF" value="0"/>
<bit name="DEBUG_HOVERTHROTTLE" value="0"/>
<bit name="DEBUG_ACC0THORDER" value="0"/>
/dongfang_FC_rewrite_tool/configsets/templates/parameterset_v102.xml
New file
0,0 → 1,125
<parametertemplate eepromVersion="102" length="50">
<section name="config" title="Configuration">
<parameter name="bitConfig" type="bitset">
<bit name="CFG_GYRO_SATURATION_PREVENTION" />
<bit name="CFG_USE_AIRSPEED_PID" />
<bit name="unused" />
<bit name="unused" />
<bit name="unused" />
<bit name="unused" />
<bit name="unused" />
<bit name="unused" />
</parameter>
</section>
 
<section name="imu" title="IMU (gyros, accelerometer and compass)">
<parameter name="pitchGyroP" />
<parameter name="pitchGyroI" />
<parameter name="pitchGyroD" />
<parameter name="pitchGyroIMax" />
 
<parameter name="rollGyroP" />
<parameter name="rollGyroI" />
<parameter name="rollGyroD" />
<parameter name="rollGyroIMax" />
 
<parameter name="yawGyroP" />
<parameter name="yawGyroI" />
<parameter name="yawGyroD" />
<parameter name="yawGyroIMax" />
 
<parameter name="stickIElevator" />
<parameter name="stickIAilerons" />
<parameter name="stickIRudder" />
 
<parameter name="IFactor" />
</section>
 
<section name="control" title="Control">
<parameter name="externalControl" type="dynamic" />
<parameter name="batteryWarningVoltage" />
 
<parameter name="airspeedCorrention" />
<parameter name="isFlyingThreshold" />
 
<parameter name="minFlashAirspeed" />
<parameter name="maxFlashAirspeed" />
</section>
 
<section name="servos" title="Servos">
<parameter name="servoCount" description="Total number of servos"/>
<parameter name="aileronsServoReverse" />
<parameter name="aileronsServoMinValue"/>
<parameter name="aileronsServoMaxValue" />
 
<parameter name="elevatorServoReverse" />
<parameter name="elevatorServoMinValue"/>
<parameter name="elevatorServoMaxValue" />
 
<parameter name="rudderServoReverse" />
<parameter name="rudderServoMinValue"/>
<parameter name="rudderServoMaxValue" />
 
<parameter name="throttleReverse" />
<parameter name="throttleMinValue"/>
<parameter name="throttleMaxValue" />
</section>
<section name="output">
<parameter name="output0BitMask" type="bitset">
<bit name="t0" />
<bit name="t1" />
<bit name="t2" />
<bit name="t3" />
<bit name="t4" />
<bit name="t5" />
<bit name="t6" />
<bit name="t7" />
</parameter>
<parameter name="output0Timing" staticCodeName="outputFlash[0].timing" dynamicCodeName="output0Timing" type="dynamic"/>
<parameter name="output1BitMask" type="bitset">
<bit name="t0" />
<bit name="t1" />
<bit name="t2" />
<bit name="t3" />
<bit name="t4" />
<bit name="t5" />
<bit name="t6" />
<bit name="t7" />
</parameter>
<parameter name="output1Timing" staticCodeName="outputFlash[1].timing" dynamicCodeName="output1Timing" type="dynamic"/>
<parameter name="outputDebugMask" type="bitset">
<bit name="DEBUG_MAINLOOP_TIMER" />
<bit name="DEBUG_HEIGHT_DIFF" />
<bit name="DEBUG_HOVERTHROTTLE" />
<bit name="DEBUG_ACC0THORDER" />
<bit name="DEBUG_SIGNAL" />
<bit name="DEBUG_PRESSURERANGE" />
<bit name="DEBUG_CLIP" />
<bit name="DEBUG_SENSORLIMIT" />
</parameter>
 
<parameter name="outputFlags" type="bitset">
<bit name="INVERT_OUTPUT0" />
<bit name="INVERT_OUTPUT1" />
<bit name="FLASH_OUTPUT0_BEEPING" />
<bit name="FLASH_OUTPUT1_BEEPING" />
<bit name="USE_ONBOARD_LEDS" />
<bit name="TEST_OFF" />
<bit name="TEST_ON" />
<bit name="UNUSED" />
</parameter>
</section>
 
<section name="userparams" title="User Parameters">
<parameter name="userparam0" />
<parameter name="userparam1" />
<parameter name="userparam2" />
<parameter name="userparam3" />
<parameter name="userparam4" />
<parameter name="userparam5" />
<parameter name="userparam6" />
<parameter name="userparam7" />
</section>
</parametertemplate>
/dongfang_FC_rewrite_tool/configsets/T28_Trojan_imu.xml
12,7 → 12,7
<bit name="Unused" value="0" />
</parameter>
 
<parameter name="gyroPIDFilterConstant" value="8" />
<parameter name="gyroPIDFilterConstant" value="10" />
<parameter name="gyroDWindowLength" value="8" />
<parameter name="gyroDFilterConstant" value="1" />
<parameter name="accFilterConstant" value="10" />