View Single Post
  #2   Spotlight this post!  
Unread 18-02-2007, 16:41
Tureyhall Tureyhall is offline
Registered User
AKA: Thomas Hall
FRC #0668 (Apes Of Wrath)
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2004
Location: San Jose
Posts: 40
Tureyhall will become famous soon enoughTureyhall will become famous soon enough
Re: Reverse Ramps???????

Quote:
Originally Posted by cardinalman86 View Post
Hey, we were just wondering if there was any way to slow a pwm down after a certain point. It would be almost like a reverse ramp we were thinking. I'm new at programming so I don't really know how i would do it. I also know that this is like a last minute thing so a quick reply would be great. Thanks in advance to anyone who helps.

Ps: this is so we don't bust our limit switch
we use a pid (proportional input device?) for this. It speeds itself up the farther it is from its destination. However, you'll need an encoder or something for this.

If you can't find code for a pid loop on Kevin Watson's site, tell me and I'll see what I can do for you.
__________________
/*Nerd Camouflage*/

2005 SVR - 668+1072+840 - Semifinalists.
2006 SVR - 668+1280+1693 - Finalists.
2007 SVR - 668+604+624 - Quarter-finalists, Xerox Creativity Award, two highest scores (290-2, 128-0) at SVR.
2007 Nat's - TBA.