mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 20:03:54 +08:00
feat(msg): add terrain-relative altitude fields
Lets the navigator mark a setpoint whose AMSL `alt` is to be re-resolved from the EKF terrain estimate every loop, instead of being frozen at receipt time. Storing AGL + flag is what enables continuous tracking; one-shot AGL->AMSL conversion freezes the target as soon as the vehicle moves over new ground. Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
@@ -21,7 +21,9 @@ float32 vz # local velocity setpoint in m/s in NED
|
||||
|
||||
float64 lat # latitude, in deg
|
||||
float64 lon # longitude, in deg
|
||||
float32 alt # altitude AMSL, in m
|
||||
float32 alt # altitude AMSL, in m. Authoritative field consumed by the position controller. When alt_is_terrain_relative is true, the navigator re-resolves this each loop as alt_above_terrain + terrain_alt
|
||||
bool alt_is_terrain_relative # true if the setpoint is meant to track terrain. The navigator keeps `alt` in sync with `alt_above_terrain + vehicle_global_position.terrain_alt`
|
||||
float32 alt_above_terrain # [m] desired AGL when alt_is_terrain_relative is true; ignored otherwise. NaN means undefined
|
||||
float32 yaw # yaw (only in hover), in rad [-PI..PI), NaN = leave to flight task
|
||||
|
||||
float32 loiter_radius # [m] [@range 0, INF] loiter major axis radius
|
||||
|
||||
Reference in New Issue
Block a user