Skip to content

Commit

Permalink
Merge pull request #420 from bitcraze/krichardsson/issue-419
Browse files Browse the repository at this point in the history
Correct Motion commander
  • Loading branch information
knmcguire authored Oct 16, 2023
2 parents 8cd8523 + d932a46 commit 17a69b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cflib/positioning/motion_commander.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def land(self, velocity=VELOCITY):
self._thread = None

self._cf.commander.send_stop_setpoint()
# Stop using low level setpoints and hand responsibility over to the high level commander to
# avoid time out when no setpoints are received any more
self._cf.commander.send_notify_setpoint_stop()
self._is_flying = False

def __enter__(self):
Expand Down

0 comments on commit 17a69b3

Please sign in to comment.