View Single Post
  #1   Spotlight this post!  
Unread 26-01-2016, 20:55
grainne grainne is offline
Lead Programmer
FRC #0811 (Team 811 Cardinals)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: New Hampshire, United States
Posts: 9
grainne is an unknown quantity at this point
global variables?

Hi

So my team's shooter for the boulders is done with a spinning wheel and has a conveyor belt that brings the boulder up to it. However, we do not want the boulder to be up at the spinning wheel until it is at full speed.I am trying to have a global boolean that will turn true when the shooter is full speed and allow the conveyor belt to bring the boulder up to it. However,I don't know where to put this. Our project has a config file, but any variables initialized in there cannot be changed as the program runs.

Any ideas as to where to put this boolean so it can be accessed and changed by multiple subsystem?
Reply With Quote