mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 00:38:00 -06:00
add javadocs
Co-Authored-By: Keenan D. Buckley <hfocus@users.noreply.github.com>
This commit is contained in:
@@ -51,7 +51,7 @@ public class RobotContainer {
|
||||
m_robotDrive.setDefaultCommand(new RunCommand(() -> m_robotDrive.driveWithInput(
|
||||
getDriverController().getLeftYAxis(),
|
||||
getDriverController().getRightXAxis()), m_robotDrive));
|
||||
//
|
||||
// drives motor with input from triggers on the opperator controller
|
||||
m_robotIntake.setDefaultCommand(new RunIntakeWithTriggers(m_robotIntake, getOperatorController()));
|
||||
// continually sends updates to the Blinkin LED controller to keep the lights on
|
||||
m_robotLED.setDefaultCommand(new RunCommand(() -> m_robotLED.updateLED(), m_robotLED));
|
||||
|
||||
@@ -16,7 +16,9 @@ public class RunIntakeWithTriggers extends CommandBase {
|
||||
private IHandController m_controller;
|
||||
|
||||
/**
|
||||
* Creates a new RunIntakeWithTriggers.
|
||||
* Uses input from opperator triggers to control intake motor
|
||||
* @param subsystem the intake subsystem
|
||||
* @param controller the operator controller
|
||||
*/
|
||||
public RunIntakeWithTriggers(Intake subsystem, IHandController controller) {
|
||||
// Use addRequirements() here to declare subsystem dependencies.
|
||||
|
||||
Reference in New Issue
Block a user