Skip to content

Commit

Permalink
#107 Fixed setpoint calls
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed Mar 18, 2019
1 parent 860c792 commit 7d80ff0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/autonomousSequence.py
Expand Up @@ -132,12 +132,13 @@ def run_sequence(scf, sequence):
for position in sequence:
print('Setting position {}'.format(position))
for i in range(50):
cf.commander.send_setpoint(position[1], position[0],
position[3],
int(position[2] * 1000))
cf.commander.send_position_setpoint(position[0],
position[1],
position[2],
position[3])
time.sleep(0.1)

cf.commander.send_setpoint(0, 0, 0, 0)
cf.commander.send_stop_setpoint()
# Make sure that the last packet leaves before the link is closed
# since the message queue is not flushed before closing
time.sleep(0.1)
Expand Down

0 comments on commit 7d80ff0

Please sign in to comment.