Go to Post And the rest of the team helped them, encouraged them, and made a big deal about how awesome it was that we were competing for the Chairman's Award. - Carolyn_Grace [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 14-01-2010, 16:26
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
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
  #2   Spotlight this post!  
Unread 14-01-2010, 23:33
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 07-10-2009 13:25
Notifier fixes (impacting PIDController) heydowns C/C++ 0 05-02-2009 11:06
need help understanding c code in robotdrive mahmosh C/C++ 14 16-01-2009 08:56
PIDController class (PIDSource/PIDOutput interfaces?) Jared Russell C/C++ 3 11-01-2009 09:49
Is it possible... Jon K. CD Forum Support 4 26-08-2002 00:01


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

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