Hi, i'´m a student of University of L´Aquila.
I'm trying to control LEDS by using a Python script to turn them on and off as i want, is it possible?
I searched in forum, and i saw that probably it's not possible, but i would like to have your confirmation.
Led control by Python script
Re: Led control by Python script
Hi Lucsaio!
It should be doable! Check out the parameter documentation for the LED group: https://www.bitcraze.io/documentation/r ... arams/#led
By controlling this parameter from Python you should be able to control the LEDs. For tutorial in setting paremters see:
https://www.bitcraze.io/documentation/r ... log_param/
Good luck!
It should be doable! Check out the parameter documentation for the LED group: https://www.bitcraze.io/documentation/r ... arams/#led
By controlling this parameter from Python you should be able to control the LEDs. For tutorial in setting paremters see:
https://www.bitcraze.io/documentation/r ... log_param/
Good luck!
Re: Led control by Python script
Thank you jonasdn,
From the attached docs i understand that right parameter is led.bitmask
I tried to search it in the "tab parameters" using the crazyflie client, but i didn´t find it.
According to you, it make sense to search it there?
and, If not, do you think that the only possibility to manage it is by using a python scipt ?
From the attached docs i understand that right parameter is led.bitmask
I tried to search it in the "tab parameters" using the crazyflie client, but i didn´t find it.
According to you, it make sense to search it there?
and, If not, do you think that the only possibility to manage it is by using a python scipt ?
-
- Bitcraze
- Posts: 630
- Joined: Tue Jun 30, 2015 7:47 am
Re: Led control by Python script
Hi!
The parameter should be available in the client (in the param tab) and you can set it from there or a python script if you like.
You can find an example of how to set parameters from at script in https://github.com/bitcraze/crazyflie-l ... icparam.py for example
The parameter should be available in the client (in the param tab) and you can set it from there or a python script if you like.
You can find an example of how to set parameters from at script in https://github.com/bitcraze/crazyflie-l ... icparam.py for example