Added "Add your docs here" flags to all needed methods

- All methods that need javadoc have been marked with

/**
 * Add your docs here.
 */
This commit is contained in:
Keenan D. Buckley
2020-01-05 20:27:01 -07:00
parent f466abead2
commit 7e57cf8f2d
6 changed files with 39 additions and 1 deletions
@@ -69,21 +69,32 @@ public class RobotContainer {
return new InstantCommand();
}
/**
* Add your docs here.
*/
public IHandController getDriverController() {
return m_driverXbox;
}
/**
* Add your docs here.
*/
public IHandController getOperatorController()
{
return m_operatorXbox;
}
/**
* Add your docs here.
*/
public Joystick getOperatorJoystick()
{
return m_operatorXbox.getJoyStick();
}
/**
* Add your docs here.
*/
public Joystick getDriverJoystick()
{
return m_driverXbox.getJoyStick();
@@ -20,6 +20,9 @@ public class SetLEDPattern extends InstantCommand {
private final LED m_led;
public static LEDPatterns m_pattern;
/**
* Add your docs here.
*/
public SetLEDPattern(LED subsystem, LEDPatterns pattern) {
m_led = subsystem;
m_pattern = pattern;
@@ -30,6 +30,9 @@ public class Drive extends SubsystemBase {
public static DifferentialDrive m_driveTrain = new DifferentialDrive(m_leftFrontMotor, m_rightFrontMotor);
/**
* Add your docs here.
*/
public Drive(){
/* factory default values */
m_leftFrontMotor.configFactoryDefault();
@@ -54,6 +57,9 @@ public class Drive extends SubsystemBase {
m_rightBackMotor.setInverted(InvertType.FollowMaster);
}
/**
* Add your docs here.
*/
public void driveWithInput(double move, double steer){
m_driveTrain.arcadeDrive(move, steer);
}
@@ -23,6 +23,9 @@ public class LED extends SubsystemBase {
public static float currentLED;
public static Spark LEDController;
/**
* Add your docs here.
*/
public LED(){
LEDController = new Spark(LEDConstants.LED_SPARK_ID);
setPattern(LEDPatterns.FOREST_WAVES);
@@ -30,10 +33,16 @@ public class LED extends SubsystemBase {
System.err.println("In the Beginning, there was Joe.\nAnd he said, 'Let there be LEDs.'\nAnd it was good.");
}
/**
* Add your docs here.
*/
public void updateLED(){
LEDController.set(currentLED);
}
/**
* Add your docs here.
*/
public void setPattern(LEDPatterns pattern){
currentLED = pattern.getValue();
LEDController.set(currentLED);