public class Robot
extends TimedRobot
Modifier and Type | Field and Description |
---|---|
static Arm |
arm |
static Claw |
claw |
static MustangCoprocessor |
coprocessor |
static DriveBase |
driveBase |
static Intake |
intake |
static MustangLEDs_2019 |
leds |
static OI |
oi |
static MustangSensors |
sensors |
Constructor and Description |
---|
Robot() |
Modifier and Type | Method and Description |
---|---|
void |
autonomousInit()
This autonomous (along with the chooser code above) shows how to select
between different autonomous modes using the dashboard.
|
void |
autonomousPeriodic()
This function is called periodically during autonomous.
|
void |
disabledInit()
This function is called once each time the robot enters Disabled mode.
|
void |
disabledPeriodic() |
void |
robotInit()
This function is run when the robot is first started up and should be
used for any initialization code.
|
void |
robotPeriodic()
This function is called every robot packet, no matter the mode.
|
void |
teleopInit() |
void |
teleopPeriodic()
This function is called periodically during operator control.
|
void |
testPeriodic()
This function is called periodically during test mode.
|
public static OI oi
public static MustangSensors sensors
public static MustangCoprocessor coprocessor
public static DriveBase driveBase
public static MustangLEDs_2019 leds
public static Intake intake
public static Claw claw
public static Arm arm
public void robotInit()
public void robotPeriodic()
This runs after the mode specific periodic functions, but before LiveWindow and SmartDashboard integrated updating.
public void disabledInit()
public void disabledPeriodic()
public void autonomousInit()
You can add additional auto modes by adding additional commands to the chooser code above (like the commented example) or additional comparisons to the switch structure below with additional strings & commands.
public void autonomousPeriodic()
public void teleopInit()
public void teleopPeriodic()
public void testPeriodic()