Skip to content

Commit 831f68b

Browse files
Merge pull request #362 from potaito/patch-2
follow_me_example: also check home position
2 parents 50604c1 + cf7b5cf commit 831f68b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/follow_me_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def fly_drone():
2828

2929
#Checking if Global Position Estimate is ok
3030
async for global_lock in drone.telemetry.health():
31-
if global_lock.is_global_position_ok:
31+
if global_lock.is_global_position_ok and global_lock.is_home_position_ok:
3232
print("-- Global position state is good enough for flying.")
3333
break
3434

0 commit comments

Comments
 (0)