Go to Post Starting from scratch is what makes it hard. - ChrisH [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 04-02-2008, 01:49
CardcaptorRLH85's Avatar
CardcaptorRLH85 CardcaptorRLH85 is offline
The master of the cards ^_^
AKA: Raa'Shaun H.
FRC #0322 (F.I.R.E. "Flint Inspires Real Engineers")
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Michigan, USA
Posts: 59
CardcaptorRLH85 is an unknown quantity at this point
Send a message via ICQ to CardcaptorRLH85 Send a message via AIM to CardcaptorRLH85 Send a message via MSN to CardcaptorRLH85 Send a message via Yahoo to CardcaptorRLH85
PID Questions

This is the first year that our team will be using a PID. In the past we've simply used dead reckoning to move around during autonomous mode and had few problems. However, with the game this year, we're going to use sensors and that means that I need to learn a new skill. I've been looking at various information, examples, and sample code for a few days now and I must say, I'm somewhat confused. I'm going to try to explain what I'm doing and hopefully I'll be able to get a bit of help ^_^

Alright, our team is using the kit Gyro and 2 Grayhill 63R encoders. I'm also using Kevin Watson's new code as the base for our teams robot code. I've managed (without too much trouble) to get the gyro and encoders wired up and running.

My problem comes with the actual writing of the PID code since even after reading much of the available information, I'm still quite confused. As I understand it, I see us needing velocity (to determine speed) and positional (to determine direction) PID's for both hybrid mode and teleoperated mode. When I look at some of the PID code snippets that I've found here at CD, I'm getting the feeling that I could make it work but I feel like I'm not understanding how the code works.

I hope that this hasn't come out too much like a stream of consciousness however, it's getting late and I've been trying to figure this out for quite a while now. If anything that I have said is completely wrong (I have my doubts on the definitions of velocity and positional PID's) please correct me. I truly thank anyone who can help me out here.

EDIT: I knew that I forgot something. Due to strong influence from the robot operator. I somehow also have to try to program the control to two stick tank type i.e. left-stick y-axis controls left side speed and right-stick y-axis controls right side speed. He's gotten pretty good at that over the years so, I can't really just change it for his last year operating the robot.
__________________


Last edited by CardcaptorRLH85 : 04-02-2008 at 01:54. Reason: I left something out
 


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
PID: P+D or P-D billbo911 Programming 1 27-01-2008 23:52
PID Control John Gutmann Programming 12 15-04-2007 18:52
PID Troubleshooting Disar Programming 4 13-09-2006 15:27
PID shadowops06 Programming 5 16-06-2006 22:48
PID code questions Don Reid Programming 15 18-02-2005 19:58


All times are GMT -5. The time now is 23:52.

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