View Single Post
  #7   Spotlight this post!  
Unread 09-04-2016, 01:14
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 250
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: Autonomous chooser not working when connected to the field

Thinking about adding the line
Code:
public void autonomousIntit () {
    autonomousCommand = (Command) autonomousChooser.getSelected ();

// *******Add this******
if (autonomousCommand == null) {
autonomousCommand = new Auto_00_ReachEdgeOfObstical();

// now the normal 
if (autonomousCommand != null) autonomousCommand.start ();
}
Reply With Quote