Lost on coding

Discussions about quadcopters/multi-rotors
Post Reply
djc3xy
Beginner
Posts: 4
Joined: Wed Jan 17, 2018 8:18 pm

Lost on coding

Post by djc3xy » Wed Jan 17, 2018 8:23 pm

I want to manipulate parameters in a code such as the motor control. Please help I need step by step instruction.

arnaud
Bitcraze
Posts: 1707
Joined: Tue Feb 06, 2007 12:36 pm

Re: Lost on coding

Post by arnaud » Thu Jan 18, 2018 8:45 am

Hi and welcome!

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

djc3xy
Beginner
Posts: 4
Joined: Wed Jan 17, 2018 8:18 pm

Re: Lost on coding

Post by djc3xy » Thu Jan 18, 2018 3:19 pm

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.

arnaud
Bitcraze
Posts: 1707
Joined: Tue Feb 06, 2007 12:36 pm

Re: Lost on coding

Post by arnaud » Fri Jan 19, 2018 9:41 am

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 489 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/

Post Reply