View Single Post
  #3   Spotlight this post!  
Unread 14-02-2014, 13:52
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: End of Match Command?

I haven't worked in Labview in a while, but the following should get you moving in the right direction:

Start a timer when your match state changes to teleoperated.

Determine how long before the end of the match you want your action performed.

When <teleop duration> - <current match time> is less than or equal to the time you want your action performed, then perform your action.

The comparison described above should result in a boolean value that you could use to run a commanded action in the same way you would use a boolean off of a joystick button. It could feed a CASE box. and your action to move the solenoid would be placed in the "True" area of the box.
__________________
http://team2168.org