Quote:
|
Originally Posted by Rick TYler
Our programmer is convinced that his encoder-enabled PD code isn't working right because the robot is on the cart with the wheels off the ground, and that it would work if it was tried on the floor. Is this your experience?
The biggest problem is speed oscillations in the wheels (speed goes up and down).
Thanks!
|
I had this problem too, and I can attest to the fact that it will help some to have it on the ground, but those oscillations will still be there. The PID loop relies on the mass of the robot to smooth out some of the oscillations, as well as a nice small timeslice. If the code takes too long between corrections, there will be no way to fix it without sacrificing "snappiness".
Hope this helps, and please correct me if I'm wrong!
__________________
CMUCam not working? Tracks sporadically? Try this instead:
http://www.falconir.com!
PM me for more information if you are interested (it's open source!).
Want the FIRST Email blasts? See here:
http://www.chiefdelphi.com/forums/sh...ad.php?t=50809
"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine
If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.
"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous
I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL