Thread: Delay Help!
View Single Post
  #3   Spotlight this post!  
Unread 20-02-2007, 00:04
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Delay Help!

Quote:
Originally Posted by waiakea2024 View Post
We are trying to make our arm move and then stop without it hitting the ground and messing up the motor.
This is where a limit (either a software one from a shaft encoder or potentiometer) is good. Otherwise, if you really want a delay, let us know (there are several ways of doing this, ranging from crude (loop counting) to good (setting up a timer and interrupt routine to get real-time clocks)