View Single Post
  #5   Spotlight this post!  
Unread 21-02-2010, 13:14
anyheck anyheck is offline
Registered User
FRC #2242 (Cougars)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: New Orleans
Posts: 26
anyheck is on a distinguished road
Re: Creating a "delay" for a boolean value

Quote:
Originally Posted by masterspy7 View Post
The first thing I tried was creating a case structure right before solenoid fire. If the incoming boolean was false (the solenoid is going to retreat) I used a watchdog delay and feed (for the errors i used solenoid open to fire). This works, but it delays the entire robot, and I think logically it would constantly be delayed when the solenoid is not firing. Is there a better way to create this kind of delay?
I don't know if this is the "best" way but I wrote these Boolean modifiers. The timing ones store a value and then compare it every loop. THese are fine to use in teleop, actually best to use there.

Regards,
Sten
Attached Files
File Type: zip Boolean Programming Modifiers.zip (33.3 KB, 26 views)
Reply With Quote