Go to Post Profesional Gracism - n. the blessing said before Robotics competitions begin. - Cynette [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
  #7   Spotlight this post!  
Unread 10-01-2008, 20:34
lukevanoort lukevanoort is offline
in between teams
AKA: Luke Van Oort
no team
 
Join Date: Oct 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 1,873
lukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond repute
Send a message via AIM to lukevanoort
Re: PID question

It looks good at first glance, but you may want to do the dividing trick (especially on I, that usually ends up as a quite small constant) to improve accuracy/speed. I would also make sure to limit the output to 0-254... I can see no way that you can be certain not to exceed the 0-254 range. If you do, the consequences can be dire for both your robot's mechanical well-being, and bystanders' (ask Billfred what a robot arm can do if you're too close... you really don't want to get an uppercut from your robot). A quick Limit_Mix() call is cheap insurance against accidentally causing major robot damage and/or bodily harm.
__________________
Team 1219: 2009 - Mentor
Team 587: 2005 - Animator, 2006-2008 - Team Captain
 


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
Potentiometer PID DustinB_3 Programming 28 15-02-2008 23:18
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 control loop/Encoder question Zee Programming 18 30-01-2004 23:14


All times are GMT -5. The time now is 18:44.

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