From 024589d63de054e699ae8f5b079973ca1f6e7a74 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Wed, 6 Dec 2017 07:29:19 +1100 Subject: [PATCH] msg: Add separate vertical and horizontal validity flags to home_position If we have taken off without GPS and gained it in flight, the home vertical position can be set, but not the horizontal. --- msg/home_position.msg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/msg/home_position.msg b/msg/home_position.msg index 19c9d44868..a7d1899985 100644 --- a/msg/home_position.msg +++ b/msg/home_position.msg @@ -12,3 +12,6 @@ float32 yaw # Yaw angle in radians float32 direction_x # Takeoff direction in NED X float32 direction_y # Takeoff direction in NED Y float32 direction_z # Takeoff direction in NED Z + +bool valid_alt # true when the altitude has been set +bool valid_hpos # true when the latitude and longitude have been set