Page 1 of 1
controll parameters with the controller
Posted: Mon Nov 24, 2014 12:38 pm
by Guggen
I'm quite new to python and I need some help. I want to be able to turn on/off a led light on my crazyflie, and with the tutorials on youtube i know how to set up a parameter and a tab for it. but how do i fix it so with a button i can change the paramters on/off? and how do i connect this to the extension board on my crazyflie? I've tried for hours without success so please help !
Re: controll parameters with the controller
Posted: Tue Dec 16, 2014 1:29 am
by chad
Hi Guggen,
Please have a look at the changes in
my GitHub fork of the Bitcraze python client. I implemented these changes to support a
NeoPixel Ring mod I did but, since you already know about parameters, you might be able to to learn how I link up the controller button to control it. I'm using support built into the firmware for the NeoPixel so you might have some extra work to do there if you just want light a single LED. In any case, see my blog post series about it (four parts
1,
2,
3,
4) and the forks on GitHub for
the firmware and
the client for more info. Specifically,
Part 4 explains the client side changes I made.
Maybe you can even get a
NeoPixel ring and have 12 LEDs in different colors instead of 1 LED.
Good luck!
Re: controll parameters with the controller
Posted: Thu Jan 22, 2015 11:52 am
by Guggen
alright thank you ! i will check out what you linked and try it out. If i manage to fix my problem i might buy one of those neopixel rings!
take care !
Re: controll parameters with the controller
Posted: Fri Jan 23, 2015 8:56 am
by chad
Hi! You might want to check out
this blog post (especially the third from the last paragraph). Looks like functionality for a couple "alt" buttons is in now and it should be pretty easy to assign them to want you want...
Regards!