mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 00:38:00 -06:00
Changed stuff
This commit is contained in:
@@ -315,6 +315,11 @@ public class RobotContainer {
|
||||
//.whenReleased(new ManageStorage(m_robotStorage, StorageMode.RESET))
|
||||
.whenReleased(new InstantCommand(() -> m_robotLime.limeOff()));
|
||||
|
||||
// new JoystickButton(getOperatorJoystick(), XboxController.LEFT_RIGHT_DPAD_AXIS)
|
||||
// .whileHeld(new ShootPrepGroup(m_robotShooter, m_robotShooterAim, m_robotShooterHood, m_robotStorage), false)
|
||||
// //.whenReleased(new ManageStorage(m_robotStorage, StorageMode.RESET))
|
||||
// .whenReleased(new InstantCommand(() -> m_robotLime.limeOff()));
|
||||
|
||||
|
||||
|
||||
//Run drum
|
||||
@@ -476,7 +481,7 @@ public class RobotContainer {
|
||||
};
|
||||
m_fiveBallBottom = new FiveBallBottom(m_robotShooterHood, m_robotStorage, m_robotIntake, m_robotShooter, m_robotShooterAim, m_robotDrive, buildPaths(fiveBallBottomPaths));
|
||||
*/
|
||||
/*
|
||||
|
||||
String[] offTheLinePaths = new String[]{
|
||||
"getOffLine1"
|
||||
};
|
||||
|
||||
@@ -36,8 +36,15 @@ public class RunLevelerWithJoystick extends CommandBase {
|
||||
// Called every time the scheduler runs while the command is scheduled.
|
||||
@Override
|
||||
public void execute() {
|
||||
double input = m_controller.getRightXAxis();
|
||||
m_leveler.runLeveler(input);
|
||||
double input = m_controller.getDpadAngle();
|
||||
if (input == 90)
|
||||
{
|
||||
m_leveler.runLeveler(0.5);
|
||||
}
|
||||
else if (input == 270)
|
||||
{
|
||||
m_leveler.runLeveler(-0.5);
|
||||
}
|
||||
}
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
|
||||
Reference in New Issue
Block a user