Skip to content

Commit 5a894bf

Browse files
committed
Added arm Crazyflies
1 parent e32b0cc commit 5a894bf

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/documentation/tutorials/getting-started-with-stem-drone-bundle.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ if __name__ == '__main__':
104104
cflib.crtp.init_drivers(enable_debug_driver=False)
105105

106106
with SyncCrazyflie(URI) as scf:
107+
# Arm the Crazyflie
108+
scf.cf.platform.send_arming_request(True)
109+
time.sleep(1.0)
110+
107111
# We take off when the commander is created
108112
with MotionCommander(scf) as mc:
109113
print('Taking off!')

src/documentation/tutorials/getting-started-with-stem-ranging-bundle.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ if __name__ == '__main__':
126126

127127
cf = Crazyflie(rw_cache='./cache')
128128
with SyncCrazyflie(URI, cf=cf) as scf:
129+
# Arm the Crazyflie
130+
scf.cf.platform.send_arming_request(True)
131+
time.sleep(1.0)
132+
129133
with MotionCommander(scf) as motion_commander:
130134
with Multiranger(scf) as multi_ranger:
131135
keep_flying = True

0 commit comments

Comments
 (0)