View Single Post
  #8   Spotlight this post!  
Unread 21-10-2010, 19:29
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: How do I use interrupts?

Quote:
Originally Posted by Jon236 View Post
...I think my takeaway from your discussion is that I should use a state machine based on the sensor inputs. My concern would be how to truly interrupt a process such as raising an arm when an imminent collision is sensed.
The answer seems obvious to me. Make "imminent collision sensed" one of the states your machine can be in, and use the sensor inputs to put it into that state when appropriate.
Reply With Quote