Go to Post ... Proof that the Unsung FIRST Heroes paves the way! - Joe Matt [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 31-01-2013, 19:06
Jay Meldrum's Avatar
Jay Meldrum Jay Meldrum is offline
Registered User
FRC #0067 (H.O.T.)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2003
Location: Michigan
Posts: 42
Jay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud ofJay Meldrum has much to be proud of
PIDController with Potentiometer

Our students are currently trying to reprogram last years robot with Command based programming. Last year we used a homemade PID function to controller our arm instead of wpi's PIDController.

We are now trying to use PIDController with the arm; one potentiometer is the input. When we set the set point to a known location and enable the PID, the pid outputs -1 100% of the time, when we move the arm across the known point the pid output never changes. Below is how we have the ReturnPIDInput defined.

We have had success with controlling the Shooter with a PID but we cannot get the arm to work.

Is it possible the PIDController is trying to read a voltage too quickly from the pot and we are recieving a NULL value back?

Anyone run into issues with this?

Code:
double Arm::ReturnPIDInput () {
	return armPot->GetAverageVoltage();
}
__________________
2012-2015 - FRC 67 - Programming/Controls Lead Mentor
2003-2005 - FRC 857 - Driver

Check us out at http://www.hotteam67.org
Previous year design docs, programming tutorials, and more!
Reply With Quote
 


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


All times are GMT -5. The time now is 12:55.

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