Trim values step [SOLVED]

Discussions and questions about the Crazyflie Nano Quadcopter
Post Reply
Malte
Beginner
Posts: 13
Joined: Thu Nov 13, 2014 3:57 pm

Trim values step [SOLVED]

Post by Malte »

is it possible to change the increasing/deceasing amount of the trim values set by the controller ?

At the moment each press on the controller buttons changes the trim values for +/- 1 but i wold like to set this value much lower e.g. 0.1-0.5 to get a better hoover behavior.
It (CF2) hoovers quite good and the props i use are balanced but id like to test if it cold get even better.
Last edited by Malte on Sun Dec 28, 2014 8:10 am, edited 1 time in total.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Trim values step

Post by chad »

Malte wrote:is it possible to change the increasing/deceasing amount of the trim values set by the controller ?
Yes! It's pretty easy too. Just go into the .json file of your controller mapping (mine is PS3_Mode_2.json) inside the "crazyflie-client-pythin/conf/input" directory. You can edit the scale there.
Malte wrote:i wold like to set this value much lower e.g. 0.1-0.5 to get a better hoover behavior.
Simply change the values for "scale" in the elements named "Pitch Cal+", "Pitch Cal-", "Roll Cal +", and "Roll Cal -".

Code: Select all

{"name":"Pitch Cal+", "type":"Input.BUTTON", "id":6, "scale":-0.2, "key":"pitchcal"},
          {"name":"Pitch Cal-", "type":"Input.BUTTON", "id":4, "scale":0.2, "key":"pitchcal"},
          {"name":"Roll Cal +", "type":"Input.BUTTON", "id":5, "scale":0.05, "key":"rollcal"},
          {"name":"Roll Cal -", "type":"Input.BUTTON", "id":7, "scale":-0.05, "key":"rollcal"},
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.
Malte
Beginner
Posts: 13
Joined: Thu Nov 13, 2014 3:57 pm

Re: Trim values step

Post by Malte »

Thanks,

this worked quit nicely, I´ve looked in all the .json files except for this one.
Last edited by Malte on Wed Dec 31, 2014 5:23 pm, edited 1 time in total.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Trim values step [SOLVED]

Post by chad »

You can also duplicate any of the config files and rename it then select it in the GUI. That way you can keep all the others as "originals" and experiment with your copy. If you ever want to go back to a "default" state, just select one of the originals in the GUI.

Have fun!! :D
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