Position and Velocity Control on PC

Firmware/software/electronics/mechanics
Post Reply
Calvin Chua
Beginner
Posts: 6
Joined: Sun Mar 01, 2020 1:28 am

Position and Velocity Control on PC

Post by Calvin Chua » Tue Mar 24, 2020 6:08 am

Hi all,

I wish to ask a question, I wish to develop a pid controller on controlling the position of the drone. Is it possible to develop a controller for it and not using the one on board?



kimberly
Bitcraze
Posts: 250
Joined: Fri Jul 06, 2018 11:13 am

Re: Position and Velocity Control on PC

Post by kimberly » Wed Mar 25, 2020 9:22 am

Hi,

So you want to develop a controller offboard on your own computer? Sure, that would be perfectly possible with the crazyflie python library. You can then send set-points for roll pitch yaw rate and trust (see examples/ramp.py as an example), if that was the level of control you are looking for.

There is a cascaded onboard PID controller so you can choice at which 'level' you want to build your own controller. If you want to control the rpm of the motors itself, this would be also possible but maybe considering the delay is not advisable to go that low level.

Calvin Chua
Beginner
Posts: 6
Joined: Sun Mar 01, 2020 1:28 am

Re: Position and Velocity Control on PC

Post by Calvin Chua » Sat Mar 28, 2020 10:19 am

Hi Kimberley,

I wish to control the rpm of the motors but I dont see any examples on the python library. Is it possible to do that

Post Reply