Thread: Threading?
View Single Post
  #6   Spotlight this post!  
Unread 09-02-2016, 17:13
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 102
pblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of light
Re: Threading?

The super(String) invocation just calls the CommandGroup's constructor (which is a Command object itself) that takes a string parameter. This parameter sets the name to associate with the command. It is not required (the default constructor will) work.

Setting the name on the Command objects can sometimes be useful when debugging. For example, if you add the line after your shooter subsystem is created, the smart dashboard will display the command that is currently active on it:

Code:
SmartDashboard.putData("Shooter", Robot.shooter);
Reply With Quote