Skip to content

Commit

Permalink
[dtd] add descriptions to airframes instead of commented xml
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Oct 20, 2017
1 parent 8a0e164 commit 7fa6001
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 7 additions & 3 deletions conf/airframes/TUDELFT/tudelft_xvert.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
<!DOCTYPE airframe SYSTEM "../airframe.dtd">

<!-- this is a quadrotor frame equiped with

<airframe name="xvert">
<description>
E-flite X-VERT VTOL

* Autopilot: xvert
* IMU: MPU6500 + external HMC58XX
* Actuators: 2 PWM servo's, 2 escs through some proprietary atmega uart protocol
* GPS: Ublox through I2C
* RC: Datalink
-->
<airframe name="xvert">
</description>

<firmware name="rotorcraft">
<target name="ap" board="xvert_1.0"/>
<define name="BAT_CHECKER_DELAY" value="80" />
Expand Down
5 changes: 3 additions & 2 deletions conf/airframes/airframe.dtd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Paparazzi airframe DTD -->

<!ELEMENT airframe (include|servos|commands|rc_commands|auto_rc_commands|ap_only_commands|command_laws|section|makefile|modules|firmware|autopilot|heli_curves)*>
<!ELEMENT airframe (include|servos|commands|rc_commands|auto_rc_commands|ap_only_commands|command_laws|section|makefile|modules|firmware|autopilot|heli_curves|description)*>
<!ELEMENT include EMPTY>
<!ELEMENT servos (servo)*>
<!ELEMENT commands (axis)*>
Expand All @@ -9,7 +9,7 @@
<!ELEMENT ap_only_commands (copy)*>
<!ELEMENT command_laws (let|set|call|ratelimit)*>
<!ELEMENT heli_curves (curve)*>
<!ELEMENT section (define|linear)*>
<!ELEMENT section (define|linear|comment)*>
<!ELEMENT servo EMPTY>
<!ELEMENT axis EMPTY>
<!ELEMENT set EMPTY>
Expand All @@ -30,6 +30,7 @@
<!ELEMENT module (configure|define|comment)*>
<!ELEMENT autopilot EMPTY>
<!ELEMENT comment (#PCDATA)>
<!ELEMENT description (#PCDATA)>

<!ATTLIST include
href CDATA #REQUIRED>
Expand Down

0 comments on commit 7fa6001

Please sign in to comment.