Experimenting PID settings

Firmware/software/electronics/mechanics
Post Reply
edwsiew
Beginner
Posts: 5
Joined: Thu Aug 17, 2017 7:15 am

Experimenting PID settings

Post by edwsiew »

Hi CrazyFlie experts,

I just setup my brand new Crazyflie today and tested some flight tests using my iPhone and Mac with CrazyRadio PA. All went well despite I have no prior knowledge on hardware and embedded system. I am interested to test this: https://github.com/bitcraze/crazyflie-f ... 697ebae590

But I have no idea where to begin. Is it so I have to check out the CF2 codes, modify pid.h accordingly, compile and update CF2 with this compiled firmware? Is there any experimental bin which I can try out right away?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Experimenting PID settings

Post by arnaud »

Hi, Welcome!

This code has been removed, the experimental PID settings became official: https://github.com/bitcraze/crazyflie-f ... face/pid.h.

If you wanted to start developping with Crazyflie you can look at the getting started with development guide: https://www.bitcraze.io/getting-started ... velopment/, it will walk you through modifying and programming your firmware. To activate the kind of code you are refering to you can add a file named tools/make/config.mk. The following line would have activated the code:

Code: Select all

CFLAGS+=-DEXPERIMENTAL_ATTITUDE_PID
After adding the line, launching 'make clean', 'make', and 'make cload', will flash the new firmware.

For the specific case of tuning PIDs, you can connect with the Crazyflie client and modify the param variables of the PID settings. We have merged a less agressive version of the settings, you could re-apply the original experimental settings directly from the client.
Post Reply