View Single Post
  #2   Spotlight this post!  
Unread 22-05-2015, 00:14
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: pass a value to a command.

Inside of the command you will probably see a constructor at the top (a constructor is a method with the same name as the command). The constructor should have 1 int parameter. Create a new global variable, and in the constructor assign the parameter to the global variable. Then replace SmartDashboard.get with the global variable.