Working Hover Mode - quick and dirty

Firmware/software/electronics/mechanics
The_Digital_1
Beginner
Posts: 3
Joined: Fri Dec 06, 2013 6:58 am

Re: Working Hover Mode - quick and dirty

Post by The_Digital_1 »

tlankford01 any luck getting altitude hold to work using the accelerometers? I too am interested to see if this is possible. Even if it only kind of worked I think it would be a good addition to the crazyflie. As it sits right now, one of the most difficult parts of flying the crazyflie is having to constantly adjust thrust manually.
erlingrj
Beginner
Posts: 23
Joined: Mon May 12, 2014 12:17 pm

Re: Working Hover Mode - quick and dirty

Post by erlingrj »

Hi

I am very interested in analyzing the algorithm for the PID-controller. Unfortunatly Im too green with programming to know where to look for the algorithm, can someone point me in the right direction i.e. in what file can I find the algorithm. I also am having trouble understanding how an integration of the error (the I-part) makes up for the decreasing power delivered to the motors due to lower voltage. I have been trying to make an hover-mode myself and that is one of the main issues, does anyone know the relation between the voltage-loss and "power-loss" in thrusting?

Regards

Erling
itsnotmyfault
Beginner
Posts: 2
Joined: Wed Sep 17, 2014 2:13 pm

Re: Working Hover Mode - quick and dirty

Post by itsnotmyfault »

While Using omwdunkley's https://bitbucket.org/bitcraze/crazyflie-pc-client I ran into a problem on Ubuntu 14.04, where I was getting a message complaining that I was using too many arguments.
"TypeError: write() takes at most 4 arguments (5 given)"

Others may be running into the same issue with pyUSB 1.0.0a2

The solution is to go into

/crazyflie-pc-client/lib/cflib/drivers/crazyradio.py line 245, 246

#remove third argument 0 for both read and write. similar to an issue in https://bitbucket.org/benallard/galileo ... t-10892785
Post Reply