mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-20 02:53:15 +08:00
[messages][server] WP_MOVED_LLA alt in mm
This commit is contained in:
+2
-2
@@ -356,7 +356,7 @@
|
||||
<field name="wp_id" type="uint8"/>
|
||||
<field name="lat" type="int32" unit="1e7deg" alt_unit="deg" alt_unit_coef="0.0000001"/>
|
||||
<field name="lon" type="int32" unit="1e7deg" alt_unit="deg" alt_unit_coef="0.0000001"/>
|
||||
<field name="alt" type="int32" unit="cm"/>
|
||||
<field name="alt" type="int32" unit="mm" alt_unit="m">Height above Mean Sea Level (geoid)</field>
|
||||
</message>
|
||||
|
||||
<message name="CHRONO" id="48">
|
||||
@@ -2223,7 +2223,7 @@
|
||||
<field name="ac_id" type="uint8"/>
|
||||
<field name="lat" type="int32" unit="1e7deg" alt_unit="deg" alt_unit_coef="0.0000001"/>
|
||||
<field name="lon" type="int32" unit="1e7deg" alt_unit="deg" alt_unit_coef="0.0000001"/>
|
||||
<field name="alt" type="int32" unit="cm"/>
|
||||
<field name="alt" type="int32" unit="cm" alt_unit="m">Height above Mean Sea Level (geoid)</field>
|
||||
</message>
|
||||
|
||||
<message name="WIND_INFO" id="3" link="forwarded">
|
||||
|
||||
@@ -318,7 +318,7 @@ let log_and_parse = fun ac_name (a:Aircraft.aircraft) msg values ->
|
||||
and lon = ivalue "lon"
|
||||
and alt = ivalue "alt" in
|
||||
let geo = make_geo_deg (float lat /. 1e7) (float lon /. 1e7) in
|
||||
update_waypoint a (ivalue "wp_id") geo (float alt /. 100.)
|
||||
update_waypoint a (ivalue "wp_id") geo (float alt /. 1000.)
|
||||
| "GENERIC_COM" ->
|
||||
let flight_time = ivalue "flight_time" in
|
||||
if flight_time >= a.flight_time then begin
|
||||
|
||||
Reference in New Issue
Block a user