View Single Post
  #11   Spotlight this post!  
Unread 14-02-2010, 18:28
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Joystick Button One-Shot (a.k.a. Rising Edge) Detection

Quote:
Originally Posted by grosh View Post
Alan- Is this what you are describing?
Not quite. I suggest that the motor should be set only once at the end of the process, with just the numeric values that will be set going through the case blocks.

It looks like your ramp runs upward with -1 and downward with +1, so the "down" limit should prevent the value from going positive. Using -1 and 0 as the range limits will let it run upward but not downward when the limit input is active.

(The three "False" cases at the top are just there to show what's going on in the bottom case blocks.)
Attached Thumbnails
Click image for larger version

Name:	ramp.jpg
Views:	44
Size:	34.7 KB
ID:	8671  
Reply With Quote