Page 1 of 1

Lost on coding

Posted: Wed Jan 17, 2018 8:23 pm
by djc3xy
I want to manipulate parameters in a code such as the motor control. Please help I need step by step instruction.

Re: Lost on coding

Posted: Thu Jan 18, 2018 8:45 am
by arnaud
Hi and welcome!

Can you please explain what you are trying to achieve and what is your current status?

Re: Lost on coding

Posted: Thu Jan 18, 2018 3:19 pm
by djc3xy
I have a Crazyflie 2.0 that I will be using for research. I want to be able to create a code or script that directly controls all 4 motors at the same time to provide the same PWM signal or thrust.

Re: Lost on coding

Posted: Fri Jan 19, 2018 9:41 am
by arnaud
There is parameters that can be used in the Crazyflie to set the PWM values of motors:
pwm.png
pwm.png (6.59 KiB) Viewed 5115 times
If you want to set parameters from your own script you can adapt the basicparam example: https://github.com/bitcraze/crazyflie-l ... icparam.py

To get started with coding in python for the Crazyflie lib you can look at this getting started, it has been done for the flow deck but it walk through the step of setting up the development environment: https://www.bitcraze.io/getting-started ... ne-bundle/