Skip to content

Commit

Permalink
[messages] alt_unit ft<->m conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Oct 6, 2014
1 parent de31ff3 commit 1468392
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/messages.xml
Expand Up @@ -1938,8 +1938,8 @@
</message>

<message name="AMSL" id="222">
<field name="AMSL_BARO" type="float" unit="ft"/>
<field name="AMSL_GPS" type="float" unit="ft"/>
<field name="AMSL_BARO" type="float" unit="ft" alt_unit="m"/>
<field name="AMSL_GPS" type="float" unit="ft" alt_unit="m"/>
</message>

<!--223 is free -->
Expand Down
2 changes: 2 additions & 0 deletions conf/units.xml
@@ -1,6 +1,8 @@
<!-- Table of default units convertion -->
<!-- used to convert from unit to alt_unit (messages) or code_unit (airframe) -->
<units>
<unit from="m" to="ft" coef="0.3048"/>
<unit from="ft to="m" coef="3.28084"/>
<unit from="m" to="cm" coef="100."/>
<unit from="cm" to="m" coef="0.01"/>
<unit from="m/s" to="cm/s" coef="100."/>
Expand Down

0 comments on commit 1468392

Please sign in to comment.