Skip to content

Commit

Permalink
check param in setparam script
Browse files Browse the repository at this point in the history
  • Loading branch information
knmcguire committed May 28, 2024
1 parent 9290648 commit dddf703
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crazyflie_examples/crazyflie_examples/set_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def main():
for cf in allcfs.crazyflies:
cf.setParam('led.bitmask', 128)
timeHelper.sleep(1.0)
if cf.getParam('led.bitmask') != 128:
print('LED of cf', cf.id, 'is not disabled!')

timeHelper.sleep(2.0)

Expand Down

0 comments on commit dddf703

Please sign in to comment.