Package org.team1540.rooster.util.robots
Class WheelbaseTestRobot
- java.lang.Object
-
- edu.wpi.first.wpilibj.RobotBase
-
- edu.wpi.first.wpilibj.IterativeRobotBase
-
- edu.wpi.first.wpilibj.IterativeRobot
-
- org.team1540.rooster.util.robots.WheelbaseTestRobot
-
- All Implemented Interfaces:
AutoCloseable
public class WheelbaseTestRobot extends edu.wpi.first.wpilibj.IterativeRobot
Class to determine a robot's wheelbase width. For use instructions, load onto a robot and check the console.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
brake
double
encoderTPU
boolean
invertLeftMotor
boolean
invertLeftSensor
boolean
invertRightMotor
boolean
invertRightSensor
int
lMotor1ID
int
lMotor2ID
int
lMotor3ID
boolean
logDataToCSV
int
rMotor1ID
int
rMotor2ID
int
rMotor3ID
double
setpoint
-
Constructor Summary
Constructors Constructor Description WheelbaseTestRobot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
robotInit()
void
robotPeriodic()
void
teleopInit()
void
teleopPeriodic()
-
Methods inherited from class edu.wpi.first.wpilibj.IterativeRobotBase
autonomousInit, autonomousPeriodic, disabledInit, disabledPeriodic, loopFunc, testInit, testPeriodic
-
-
-
-
Field Detail
-
logDataToCSV
public boolean logDataToCSV
-
lMotor1ID
public int lMotor1ID
-
lMotor2ID
public int lMotor2ID
-
lMotor3ID
public int lMotor3ID
-
rMotor1ID
public int rMotor1ID
-
rMotor2ID
public int rMotor2ID
-
rMotor3ID
public int rMotor3ID
-
invertLeftMotor
public boolean invertLeftMotor
-
invertRightMotor
public boolean invertRightMotor
-
invertLeftSensor
public boolean invertLeftSensor
-
invertRightSensor
public boolean invertRightSensor
-
brake
public boolean brake
-
encoderTPU
public double encoderTPU
-
setpoint
public double setpoint
-
-
Method Detail
-
robotInit
public void robotInit()
- Overrides:
robotInit
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
teleopInit
public void teleopInit()
- Overrides:
teleopInit
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
teleopPeriodic
public void teleopPeriodic()
- Overrides:
teleopPeriodic
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
robotPeriodic
public void robotPeriodic()
- Overrides:
robotPeriodic
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
-