1
0
Fork 0

Add 4 more example protocal files which also support the AuraUAS flight

controller running SIL/HIL.
This commit is contained in:
Curtis L. Olson 2017-01-09 15:05:39 -06:00
parent 49836f9956
commit 0963e033ec
4 changed files with 335 additions and 0 deletions

125
Protocol/aura-act.xml Normal file
View file

@ -0,0 +1,125 @@
<?xml version="1.0"?>
<!-- Example usage: <dash><dash>generic=file,out,50,fgfs.truth,insgns-truth -->
<PropertyList>
<generic>
<input>
<binary_mode>true</binary_mode>
<binary_footer>none</binary_footer>
<chunk>
<name>time (sec)</name>
<type>double</type>
<node>/aura-uas/act/timestamp-sec</node>
</chunk>
<chunk>
<name>aileron</name>
<type>float</type>
<node>/aura-uas/act/aileron</node>
</chunk>
<chunk>
<name>elevator</name>
<type>float</type>
<node>/aura-uas/act/elevator</node>
</chunk>
<chunk>
<name>throttle</name>
<type>float</type>
<node>/aura-uas/act/throttle</node>
</chunk>
<chunk>
<name>rudder</name>
<type>float</type>
<node>/aura-uas/act/rudder</node>
</chunk>
<chunk>
<name>channel5</name>
<type>float</type>
<node>/aura-uas/act/channel5</node>
</chunk>
<chunk>
<name>channel6</name>
<type>float</type>
<node>/aura-uas/act/channel6</node>
</chunk>
<chunk>
<name>channel7</name>
<type>float</type>
<node>/aura-uas/act/channel7</node>
</chunk>
<chunk>
<name>channel8</name>
<type>float</type>
<node>/aura-uas/act/channel8</node>
</chunk>
<chunk>
<name>target-bank</name>
<type>float</type>
<node>/controls/reserved/reserved[0]</node>
</chunk>
<chunk>
<name>target-pitch</name>
<type>float</type>
<node>/controls/reserved/reserved[1]</node>
</chunk>
<chunk>
<name>wind-hdg-error</name>
<type>float</type>
<node>/controls/reserved/reserved[2]</node>
</chunk>
<chunk>
<name>climb-rate</name>
<type>float</type>
<node>/controls/reserved/reserved[3]</node>
</chunk>
<chunk>
<name>altitude</name>
<type>float</type>
<node>/controls/reserved/reserved[4]</node>
</chunk>
<chunk>
<name>speed</name>
<type>float</type>
<node>/controls/reserved/reserved[5]</node>
</chunk>
<chunk>
<name>ground-grack</name>
<type>float</type>
<node>/controls/reserved/reserved[6]</node>
</chunk>
<chunk>
<name>dist</name>
<type>float</type>
<node>/controls/reserved/reserved[7]</node>
</chunk>
<chunk>
<name>eta</name>
<type>float</type>
<node>/controls/reserved/reserved[8]</node>
</chunk>
</input>
</generic>
</PropertyList>

62
Protocol/aura-gps.xml Normal file
View file

@ -0,0 +1,62 @@
<?xml version="1.0"?>
<!-- Example usage: <dash><dash>generic=file,out,4,fgfs.gps,insgns-gps -->
<PropertyList>
<generic>
<output>
<binary_mode>true</binary_mode>
<binary_footer>none</binary_footer>
<chunk>
<name>time (sec)</name>
<type>double</type>
<node>/sim/time/elapsed-sec</node>
</chunk>
<chunk>
<name>latitude</name>
<type>double</type>
<node>/position/latitude-deg</node>
</chunk>
<chunk>
<name>longitude</name>
<type>double</type>
<node>/position/longitude-deg</node>
</chunk>
<chunk>
<name>positive altitiude (m)</name>
<type>float</type>
<node>/position/altitude-ft</node>
<factor>0.3048</factor> <!-- feet to meter -->
</chunk>
<chunk>
<name>Velocity North ("vn" mps)</name>
<type>float</type>
<node>/velocities/speed-north-fps</node>
<factor>0.3048</factor> <!-- fps to mps -->
</chunk>
<chunk>
<name>Velocity East ("ve" mps)</name>
<type>float</type>
<node>/velocities/speed-east-fps</node>
<factor>0.3048</factor> <!-- fps to mps -->
</chunk>
<chunk>
<name>Velocity Down ("vd" mps)</name>
<type>float</type>
<node>/velocities/speed-down-fps</node>
<factor>0.3048</factor> <!-- fps to mps -->
</chunk>
</output>
</generic>
</PropertyList>

95
Protocol/aura-imu.xml Normal file
View file

@ -0,0 +1,95 @@
<?xml version="1.0"?>
<!-- Example usage: <dash><dash>generic=file,out,50,fgfs.imu,insgns-imu -->
<PropertyList>
<generic>
<output>
<binary_mode>true</binary_mode>
<binary_footer>none</binary_footer>
<chunk>
<name>time (sec)</name>
<type>double</type>
<node>/sim/time/elapsed-sec</node>
</chunk>
<chunk>
<name>roll rate ("p" rad/sec)</name>
<type>float</type>
<node>/orientation/p-body</node>
</chunk>
<chunk>
<name>pitch rate ("q" rad/sec)</name>
<type>float</type>
<node>/orientation/q-body</node>
</chunk>
<chunk>
<name>yaw rate ("r" rad/sec)</name>
<type>float</type>
<node>/orientation/r-body</node>
</chunk>
<chunk>
<name>X accel (body axis) (mps)</name>
<type>float</type>
<node>/accelerations/pilot/x-accel-fps_sec</node>
<factor>0.3048</factor> <!-- feet to meter -->
</chunk>
<chunk>
<name>Y accel (body axis) (mps)</name>
<type>float</type>
<node>/accelerations/pilot/y-accel-fps_sec</node>
<factor>0.3048</factor> <!-- feet to meter -->
</chunk>
<chunk>
<name>Z accel (body axis) (mps)</name>
<type>float</type>
<node>/accelerations/pilot/z-accel-fps_sec</node>
<factor>0.3048</factor> <!-- feet to meter -->
</chunk>
<!-- air data appended to IMU data for convenience -->
<chunk>
<name>Indicated airspeed (kt)</name>
<type>float</type>
<node>/velocities/airspeed-kt</node>
</chunk>
<chunk>
<name>Local Pressure (inhg)</name>
<type>float</type>
<node>/environment/pressure-inhg</node>
</chunk>
<!-- attitude "truth" also appended for the purposes of allowing -->
<!-- the filter to evaluate how well it's doing -->
<chunk>
<name>roll truth (deg)</name>
<type>float</type>
<node>/orientation/roll-deg</node>
</chunk>
<chunk>
<name>pitch truth (deg)</name>
<type>float</type>
<node>/orientation/pitch-deg</node>
</chunk>
<chunk>
<name>heading truth (deg)</name>
<type>float</type>
<node>/orientation/heading-deg</node>
</chunk>
</output>
</generic>
</PropertyList>

53
Protocol/aura-pilot.xml Normal file
View file

@ -0,0 +1,53 @@
<?xml version="1.0"?>
<!-- Example usage: <dash><dash>generic=file,out,50,fgfs.truth,insgns-truth -->
<PropertyList>
<generic>
<output>
<binary_mode>true</binary_mode>
<binary_footer>none</binary_footer>
<chunk>
<name>time (sec)</name>
<type>double</type>
<node>/sim/time/elapsed-sec</node>
</chunk>
<chunk>
<name>aileron</name>
<type>float</type>
<node>/controls/flight/aileron</node>
</chunk>
<chunk>
<name>elevator</name>
<type>float</type>
<node>/controls/flight/elevator</node>
</chunk>
<chunk>
<name>throttle</name>
<type>float</type>
<node>/controls/engines/engine[0]/throttle</node>
</chunk>
<chunk>
<name>rudder</name>
<type>float</type>
<node>/controls/flight/rudder</node>
</chunk>
<chunk>
<name>auto/manual select</name>
<type>float</type>
<node>/aura-uas/settings/ap-enable</node>
</chunk>
</output>
</generic>
</PropertyList>