|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Emergency: PID with Wheels Off the Ground
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! |
|
#2
|
|||||
|
|||||
|
Re: Emergency: PID with Wheels Off the Ground
Quote:
Hope this helps, and please correct me if I'm wrong! Last edited by Eldarion : 06-02-2006 at 23:19. |
|
#3
|
|||
|
|||
|
Re: Emergency: PID with Wheels Off the Ground
Tuning this year's PD system (our first as a team) we were able to get it to run ok with wheels in the air (and then for some time before further modifications) by starting with a P gain too low than tuning it up till the oscillations just begin..
Keep in mind that the weight and friction of the robot acts as a serious D controller, which does prevent major oscillation. I would just tune the P gain until you don't get a lot of major oscillation and then see how it works on the floor. |
|
#4
|
||||
|
||||
|
Re: Emergency: PID with Wheels Off the Ground
definately has to be on the floor - tuning it with the wheels in the air will only show that the code is working, you will still need to change the constants for th e dynamics of the bot when its on the floor
make sure you have a disable switch wired to the OI, keep someone on the switch while its being tested, then go for it on the carpet. PS: your programmer knows his stuff! :^) |
|
#5
|
|||
|
|||
|
Re: Emergency: PID with Wheels Off the Ground
Would either of you be willing to share your source with us? You can email it to me at gmail.com. Something is seriously wrong here and we are starting to seriously panic. Thankyouthankyouthankyou.
|
|
#6
|
||||
|
||||
|
Re: Emergency: PID with Wheels Off the Ground
if a PID loop totally wacks out then usually:
A. you have the polarity of a feedback signal backwards or 2. you have your gain way too high. |
|
#7
|
|||
|
|||
|
Re: Emergency: PID with Wheels Off the Ground
Quote:
|
|
#8
|
|||
|
|||
|
Re: Emergency: PID with Wheels Off the Ground
Status: it works better on the ground. Tuning is underway. Thanks, everyone.
|
|
#9
|
||||
|
||||
|
Re: Emergency: PID with Wheels Off the Ground
Quote:
Last year, I ended up having the team code in two sets of PID constants: the normal tuned ones, and some majorly scaled back ones for testing the robot up on blocks so that you can tell that autonomous code is doing the right thing. Since we're talking about it, the other major PID caveats are: 1. Making sure you sanity check your integral control (i.e. put a cap on the integral so that it can't overflow and wrap around, since that causes a major spazz) 2. Make sure you are applying the corrections in the right direction. And check your math to make sure you aren't overflowing variables. 3. The I and D control should be small. 4. Resist the temptation to adjust all the factors at once. |
|
#10
|
||||
|
||||
|
Re: Emergency: PID with Wheels Off the Ground
we always had a PID enable switch on our OI, when we used PID for steering or velocity.
Some drivers preferred driving open loop, and it allowed you to test the bot with the wheels up. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PID cmd_drive can't drive straight? | gnormhurst | Programming | 4 | 18-02-2005 01:54 |
| Lots of Wheels and F = u x N | archiver | 2001 | 17 | 23-06-2002 23:37 |
| Good or bad: back wheels coming off the ground | Gui Cavalcanti | Technical Discussion | 2 | 17-03-2002 22:09 |
| Our wheels don't touch the ground! | ahecht | General Forum | 12 | 29-01-2002 19:35 |
| "Motors and Drive train edition" of Fresh From the Forum | Ken Leung | CD Forum Support | 6 | 29-01-2002 12:32 |