2
This commit is contained in:
@@ -24,9 +24,9 @@ public class ClimberControls {
|
|||||||
return Commands.run(()->{
|
return Commands.run(()->{
|
||||||
//climber.climbUp();
|
//climber.climbUp();
|
||||||
if(controller.getRightY() < -0.5){
|
if(controller.getRightY() < -0.5){
|
||||||
climber.climbDownNonStop();
|
|
||||||
} else if(controller.getRightY() > 0.5){
|
|
||||||
climber.climbUpNonStop();
|
climber.climbUpNonStop();
|
||||||
|
} else if(controller.getRightY() > 0.5){
|
||||||
|
climber.climbDownNonStop();
|
||||||
} else if (controller.y().getAsBoolean()) {
|
} else if (controller.y().getAsBoolean()) {
|
||||||
climber.climbUp();
|
climber.climbUp();
|
||||||
} else if (controller.x().getAsBoolean()) {
|
} else if (controller.x().getAsBoolean()) {
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import edu.wpi.first.networktables.NetworkTableInstance;
|
|||||||
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
|
||||||
import edu.wpi.first.wpilibj2.command.Command;
|
import edu.wpi.first.wpilibj2.command.Command;
|
||||||
import edu.wpi.first.wpilibj2.command.Commands;
|
import edu.wpi.first.wpilibj2.command.Commands;
|
||||||
import edu.wpi.first.wpilibj2.command.InstantCommand;
|
|
||||||
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
|
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
|
||||||
import frc.robot.Constants;
|
import frc.robot.Constants;
|
||||||
import frc.robot.RobotStatusManager;
|
import frc.robot.RobotStatusManager;
|
||||||
|
|||||||
@@ -76,9 +76,9 @@ public class IntakerControls {
|
|||||||
IntakerSubsystem.setIntakerGetterSpeed(getterspeed);
|
IntakerSubsystem.setIntakerGetterSpeed(getterspeed);
|
||||||
|
|
||||||
if(controller.getLeftY() < -0.5){
|
if(controller.getLeftY() < -0.5){
|
||||||
IntakerSubsystem.IntakerDownNonStop();
|
|
||||||
} else if(controller.getLeftY() > 0.5){
|
|
||||||
IntakerSubsystem.IntakerUpNonStop();
|
IntakerSubsystem.IntakerUpNonStop();
|
||||||
|
} else if(controller.getLeftY() > 0.5){
|
||||||
|
IntakerSubsystem.IntakerDownNonStop();
|
||||||
} else {
|
} else {
|
||||||
IntakerSubsystem.stopIntakerotater();
|
IntakerSubsystem.stopIntakerotater();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ public class IntakerSubsystem extends SubsystemBase{
|
|||||||
public void IntakerUpNonStop(){
|
public void IntakerUpNonStop(){
|
||||||
double currentPosition = getIntakerotaterPosition();
|
double currentPosition = getIntakerotaterPosition();
|
||||||
if (currentPosition < Constants.Intaker.intakeRotaterUpLimit) {
|
if (currentPosition < Constants.Intaker.intakeRotaterUpLimit) {
|
||||||
intakerotater.set(0.1);}
|
intakerotater.set(0.2);}
|
||||||
|
|
||||||
// if (currentPosition < Constants.Intaker.intakeRotaterUpLimit) {
|
// if (currentPosition < Constants.Intaker.intakeRotaterUpLimit) {
|
||||||
// intakerotater.setControl(velocityRequest.withVelocity(-Constants.Intaker.intakeRotaterVelocity));
|
// intakerotater.setControl(velocityRequest.withVelocity(-Constants.Intaker.intakeRotaterVelocity));
|
||||||
|
|||||||
Reference in New Issue
Block a user