Quote:
Originally Posted by Awesomegamer235
what is the "package org.usfirst.frc.team3019.robot.subsystems;" mean
|
This is the auto generated package for a command based robot. There are 3 different packages auto created. robot.subsystems, robot.commands, and just robot.
explanation of each package:
Robot.Subsystem: This package contains classes to hold motor instances, sensors, pnumatics. In each class there are also methods to move each motor and read the sensors.
Robot.Commands: This package contains the classes that tell the subsystems how to act. For example the class DriveStraight class tells the driveTrain subsystem to drive untill X condition happens.
Robot: This package contains the 3 main classes: Robot, RobotMap, OI
- Robot: This is the main class of the Robot, instantiates all the public static subsystems and sets the autonomous command.
- RobotMap:Holds all the constants of the Robot so there is not a bunch of magic numbers in the code, generally using a single class for all constants is bad practice, however use it for now.
- OI:Holds the joysticks and the joystick buttons and binds the buttons to the commands