controll parameters with the controller

Firmware/software/electronics/mechanics
Post Reply
Guggen
Beginner
Posts: 2
Joined: Mon Nov 24, 2014 12:33 pm

controll parameters with the controller

Post 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 !
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: controll parameters with the controller

Post 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!
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Guggen
Beginner
Posts: 2
Joined: Mon Nov 24, 2014 12:33 pm

Re: controll parameters with the controller

Post 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 !
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: controll parameters with the controller

Post 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!
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Post Reply