From dddf703ca798a3e09c832dd5d47d327df51f3d7e Mon Sep 17 00:00:00 2001 From: knmcguire Date: Tue, 28 May 2024 13:11:10 +0200 Subject: [PATCH] check param in setparam script --- crazyflie_examples/crazyflie_examples/set_param.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crazyflie_examples/crazyflie_examples/set_param.py b/crazyflie_examples/crazyflie_examples/set_param.py index 69c49daf0..db5ca347b 100644 --- a/crazyflie_examples/crazyflie_examples/set_param.py +++ b/crazyflie_examples/crazyflie_examples/set_param.py @@ -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)