View Single Post
  #3   Spotlight this post!  
Unread 24-01-2015, 21:07
Camilo86's Avatar
Camilo86 Camilo86 is offline
Registered User
AKA: camilo
FRC #0125 (Nutrons)
Team Role: Programmer
 
Join Date: Jun 2013
Rookie Year: 2012
Location: Boston
Posts: 21
Camilo86 is a glorious beacon of lightCamilo86 is a glorious beacon of lightCamilo86 is a glorious beacon of lightCamilo86 is a glorious beacon of lightCamilo86 is a glorious beacon of lightCamilo86 is a glorious beacon of light
Re: Robot won't drive. Help with "command based" programming

If you were to make the command dothedrive the default command for the cassie subsystem, you wouldn't have to specifically call it in the Robot class as long as you have an object of the subsystem there. You can do this by adding this line inside your initDefaultCommand() inside your cassie subsystem

Code:
setDefaultCommand(new dothedrive());
It is best to add a default command inside your subsystem than calling all the commands from the Robot class

Last edited by Camilo86 : 24-01-2015 at 21:18.
Reply With Quote