Quote:
Originally Posted by kylelanman
All commands inherit CommandBase and CommandBase contains static instances of each subsystem.
|
Quote:
Originally Posted by DjScribbles
The Robot class has static instances of all subsystems, so you can access them from anywhere that includes Robot.h (just as is done in commands).
|
In case anyone is confused, both Kyle and Joe are correct, depending on how you started your project. Currently, if you build your build your project with the Windriver plugins, you get a CommandBase that contains all subsystems. If you use RobotBuilder, the Robot class contains all subsystems.