Page 4 of 4

Re: Working Hover Mode - quick and dirty

Posted: Thu Apr 24, 2014 1:52 am
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.

Re: Working Hover Mode - quick and dirty

Posted: Thu Aug 14, 2014 4:22 pm
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

Re: Working Hover Mode - quick and dirty

Posted: Wed Sep 17, 2014 2:28 pm
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