|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: PID robot heading--comments?
I've had a similar idea of using a PID loop to control robot heading. I've been experimenting with the idea of PID Heading Control on our old 2008 robot, which seems to fair nicely. Though with the new wheels, I'm not sure how much effect a loop would have, but it could prove VERY useful if it can be used wisely.
It shall have to wait until tomorrow when I can play with a robot with the new wheels. ![]() -Tanner |
|
#2
|
||||
|
||||
|
Re: PID robot heading--comments?
Using the gyro is an ok idea, but keep in mind that your gyro will drift naturally over time (without vibration, ours was drifting about 1 deg/minute today in the shop).
Much worse than that however, is that if your robot gets hit hard (likely in this high-contact game) you'll briefly exceed the gyro's maximum speed which will mess up your current heading calculation. We were thinking of something similar, but rather than aiming to point the robot at a certain absolute angle, have the X position of your joystick describe a desired turn rate in degrees per second, then have a PID loop attempt to achieve that. |
|
#3
|
|||
|
|||
|
Re: PID robot heading--comments?
Quote:
|
|
#4
|
|||||
|
|||||
|
Re: PID robot heading--comments?
Use an Accelerometer to know if there was a sirious bump and use it to define what the robot will do in a bump. I'm sure the Accelerometer can detect bumps from diffrent angles and report them to the cRIO.
|
|
#5
|
||||
|
||||
|
Re: PID robot heading--comments?
Quote:
Another concern is that friction between the carpet around the outside and the wheel is much greater than the friction between the plastic and the wheel, this will likely cause less than desirable results if part of your robot is on the carpet. -James |
|
#6
|
||||
|
||||
|
Re: PID robot heading--comments?
Quote:
It is correct to say (as above) that you don't have to control the actual heading (called "position loop"), but you could instead control the rate of change of heading ("velocity loop"). many machine tools (milling machines, waterjets, etc) use two layers of PID. one position loop, and one velocity loop "inside" it. The position loop says "I'm going to need to be here, so go this fast" to the servo amplifier (a fancy speed controller). The Amplifier then says "I need to be going this fast, so I should use this current" to decide what to send to the motor. Since a First robot may not care about the absolute heading, the position loop can be left out. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding heading from camera. | SL8 | Programming | 3 | 18-03-2008 21:29 |
| Gyro Heading Correction in Operator Mode | wkethman | Programming | 1 | 26-01-2008 15:25 |
| Demo: Simple robot arm with a PID controller | mtomczak | Programming | 1 | 17-01-2008 02:17 |
| Keeping a certain heading using a gyro | DanDon | Programming | 12 | 08-03-2006 14:27 |
| Heading west? | Andy Baker | Rumor Mill | 2 | 26-10-2001 02:50 |