View Single Post
  #4   Spotlight this post!  
Unread 18-02-2005, 02:39
ktrussell ktrussell is offline
Registered User
AKA: Kenny Trussell
FRC #1057 (Blue Knights)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sandersville, GA
Posts: 7
ktrussell is an unknown quantity at this point
Re: Programming of Pneumatics

You will need to make 'latch' a static variable if you are defining it inside a function so that it will retain its value between calls to the function. If you declare it outside a function (global to the file), it is by default static. I would assume you would declare 'latch' inside the function, though.