Skip to content

Commit

Permalink
Merge pull request #362 from potaito/patch-2
Browse files Browse the repository at this point in the history
follow_me_example: also check home position
  • Loading branch information
JonasVautherin authored Jun 18, 2021
2 parents 50604c1 + cf7b5cf commit 831f68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/follow_me_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 831f68b

Please sign in to comment.