|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
RobotDrive + PIDController = possible?
Is it possible to use the RobotDrive class and the PIDController class together so that each drive wheel has PID control?
|
|
#2
|
||||
|
||||
|
Re: RobotDrive + PIDController = possible?
Last year, my team (2342) used a PID controller to control the steering of our wheels. From my knowledge of a PID controller, I imagine you could, but I am not sure why you would want to. Can you please explain? Have you considered an Alpha-Beta filter?
|
|
#3
|
|||
|
|||
|
Re: RobotDrive + PIDController = possible?
PID's are a great way to exert control over motors. The drive wheels are driven by motors. Put the two together.....
Specifically, with friction losses and gearbox/pwm/motor variability, low speed robot movement could be enhanced if the drive wheel motors have software PID control. We usually do that by writing our own drive software, but if it can be done with existing libraries, why reinvent the wheel (ha ha). |
|
#4
|
|||
|
|||
|
Re: RobotDrive + PIDController = possible?
Quote:
You can see an example of how to do that by looking at the 2010 Image Demo in the list of example programs with the 2010 update. Look at the MyRobot.cpp file and find the SamplePIDOutput class. It's pretty easy to do. The sample program uses the output of the PID loop to control the turn direction of the robot to keep the target centered in the camera field of view. |
|
#5
|
|||
|
|||
|
Re: RobotDrive + PIDController = possible?
Thanks. I'll give it a try.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| editing robotDrive class help | mikelowry | C/C++ | 2 | 10-07-2009 01:25 PM |
| Notifier fixes (impacting PIDController) | heydowns | C/C++ | 0 | 02-05-2009 11:06 AM |
| need help understanding c code in robotdrive | mahmosh | C/C++ | 14 | 01-16-2009 08:56 AM |
| PIDController class (PIDSource/PIDOutput interfaces?) | Jared Russell | C/C++ | 3 | 01-11-2009 09:49 AM |
| Is it possible... | Jon K. | CD Forum Support | 4 | 08-26-2002 12:01 AM |