mirror of
https://github.com/Team4388/2024AcrossTheRidgebotiverse.git
synced 2026-06-09 00:38:02 -06:00
no more joystick warning
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
package frc4388.robot;
|
package frc4388.robot;
|
||||||
|
|
||||||
|
import edu.wpi.first.wpilibj.DriverStation;
|
||||||
import edu.wpi.first.wpilibj.GenericHID;
|
import edu.wpi.first.wpilibj.GenericHID;
|
||||||
import edu.wpi.first.wpilibj2.command.Command;
|
import edu.wpi.first.wpilibj2.command.Command;
|
||||||
import edu.wpi.first.wpilibj2.command.ConditionalCommand;
|
import edu.wpi.first.wpilibj2.command.ConditionalCommand;
|
||||||
@@ -115,6 +116,8 @@ public class RobotContainer {
|
|||||||
public RobotContainer() {
|
public RobotContainer() {
|
||||||
configureButtonBindings();
|
configureButtonBindings();
|
||||||
|
|
||||||
|
DriverStation.silenceJoystickConnectionWarning(true);
|
||||||
|
|
||||||
/* Default Commands */
|
/* Default Commands */
|
||||||
// drives the robot with a two-axis input from the driver controller
|
// drives the robot with a two-axis input from the driver controller
|
||||||
m_robotSwerveDrive.setDefaultCommand(new RunCommand(() -> {
|
m_robotSwerveDrive.setDefaultCommand(new RunCommand(() -> {
|
||||||
|
|||||||
@@ -30,9 +30,7 @@ public class Intake extends SubsystemBase {
|
|||||||
private SparkLimitSwitch reverseLimit;
|
private SparkLimitSwitch reverseLimit;
|
||||||
private SparkLimitSwitch intakeforwardLimit;
|
private SparkLimitSwitch intakeforwardLimit;
|
||||||
private SparkLimitSwitch intakereverseLimit;
|
private SparkLimitSwitch intakereverseLimit;
|
||||||
|
|
||||||
private Shooter shooter;
|
|
||||||
|
|
||||||
private BooleanSupplier sup = () -> true;
|
private BooleanSupplier sup = () -> true;
|
||||||
private BooleanSupplier dup = () -> false;
|
private BooleanSupplier dup = () -> false;
|
||||||
|
|
||||||
@@ -64,7 +62,7 @@ public class Intake extends SubsystemBase {
|
|||||||
m_spedController.setI(armGains.kI);
|
m_spedController.setI(armGains.kI);
|
||||||
m_spedController.setD(armGains.kD);
|
m_spedController.setD(armGains.kD);
|
||||||
|
|
||||||
SmartDashboard.putNumber("Intake Speed", 0.5);
|
SmartDashboard.putNumber("Outtake Speed", IntakeConstants.INTAKE_OUT_SPEED_UNPRESSED);
|
||||||
}
|
}
|
||||||
|
|
||||||
//hanoff
|
//hanoff
|
||||||
@@ -204,6 +202,6 @@ public class Intake extends SubsystemBase {
|
|||||||
resetPosition();
|
resetPosition();
|
||||||
changeIntakeNeutralState();
|
changeIntakeNeutralState();
|
||||||
|
|
||||||
smartDashboardOuttakeValue = SmartDashboard.getNumber("Intake Speed", 0.5);
|
smartDashboardOuttakeValue = SmartDashboard.getNumber("Outtake Speed", IntakeConstants.INTAKE_OUT_SPEED_UNPRESSED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user