Go to Post The engineers and mentors provide the "I" in FIRST and FIRST would be nowhere near where it is today without this exceptional leadership shown by so many of these volunteers. - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-12-2010, 04:38 PM
oddjob oddjob is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Earth
Posts: 118
oddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to behold
RobotDrive + PIDController = possible?

Is it possible to use the RobotDrive class and the PIDController class together so that each drive wheel has PID control?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-13-2010, 04:15 AM
Phoenix Spud's Avatar
Phoenix Spud Phoenix Spud is offline
Everyone. Everywhere.
FRC #3132 (Thunder Down Under)
Team Role: College Student
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Sydney, Australia
Posts: 702
Phoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond repute
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?
__________________
Sarah Heimlich
Outreach Mentor | Business Mentor
FIRST® TEAM 3132
Reply With Quote
  #3   Spotlight this post!  
Unread 01-13-2010, 12:08 PM
oddjob oddjob is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Earth
Posts: 118
oddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to behold
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).
Reply With Quote
  #4   Spotlight this post!  
Unread 01-14-2010, 04:26 PM
BradAMiller BradAMiller is online now
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 587
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: RobotDrive + PIDController = possible?

Quote:
Originally Posted by oddjob View Post
Is it possible to use the RobotDrive class and the PIDController class together so that each drive wheel has PID control?
The PID class requires you to supply a PIDOutput object that actually sets the values. By default the standard motor objects like Jaguar and Victor are already PIDOutput objects. But you can create your own PIDOutput object that works with the PID class and control either the turn rate or the forward speed.

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.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #5   Spotlight this post!  
Unread 01-14-2010, 11:33 PM
oddjob oddjob is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Earth
Posts: 118
oddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to behold
Re: RobotDrive + PIDController = possible?

Thanks. I'll give it a try.


Quote:
Originally Posted by BradAMiller View Post
Look at the MyRobot.cpp file and find the SamplePIDOutput class. It's pretty easy to do.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 09:11 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi