Skip to content

Commit

Permalink
Merge pull request #196 from bitcraze/Aris/StemArming
Browse files Browse the repository at this point in the history
Added arm Crazyflies in Stem tutorials
  • Loading branch information
ArisMorgens authored Feb 3, 2025
2 parents 27ff29b + 5a894bf commit c3f6b6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ if __name__ == '__main__':
cflib.crtp.init_drivers(enable_debug_driver=False)

with SyncCrazyflie(URI) as scf:
# Arm the Crazyflie
scf.cf.platform.send_arming_request(True)
time.sleep(1.0)

# We take off when the commander is created
with MotionCommander(scf) as mc:
print('Taking off!')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ if __name__ == '__main__':

cf = Crazyflie(rw_cache='./cache')
with SyncCrazyflie(URI, cf=cf) as scf:
# Arm the Crazyflie
scf.cf.platform.send_arming_request(True)
time.sleep(1.0)

with MotionCommander(scf) as motion_commander:
with Multiranger(scf) as multi_ranger:
keep_flying = True
Expand Down

0 comments on commit c3f6b6e

Please sign in to comment.