From cf7b5cf38d5964b5818ff2da8e705612300e4172 Mon Sep 17 00:00:00 2001 From: alessandro <3762382+potaito@users.noreply.github.com> Date: Fri, 18 Jun 2021 08:01:09 +0200 Subject: [PATCH] follow_me_example: also check home position Some versions of PX4 fail with this example because GPS checks are passed before a home position is set. The example code tries to arm without home position then, which is rejected. --- examples/follow_me_example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/follow_me_example.py b/examples/follow_me_example.py index 75ce2830..79e7b8cc 100755 --- a/examples/follow_me_example.py +++ b/examples/follow_me_example.py @@ -28,7 +28,7 @@ async def fly_drone(): #Checking if Global Position Estimate is ok async for global_lock in drone.telemetry.health(): - if global_lock.is_global_position_ok: + if global_lock.is_global_position_ok and global_lock.is_home_position_ok: print("-- Global position state is good enough for flying.") break