]> git.taranathan.com Git - FRC2026.git/commitdiff
n
authormaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Sat, 21 Feb 2026 19:12:31 +0000 (11:12 -0800)
committermaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Sat, 21 Feb 2026 19:12:31 +0000 (11:12 -0800)
src/main/java/frc/robot/subsystems/Intake/Intake.java
src/main/java/frc/robot/subsystems/Intake/IntakeIO.java

index 47f42cad2bdec03a54b4e19f80723da3056fa2de..8bfb7f37d2cd6e456b255500371916720dfc4869 100644 (file)
@@ -180,11 +180,6 @@ public class Intake extends SubsystemBase implements IntakeIO{
         Logger.recordOutput("Intake/Setpoint", setpointInches);
         robotExtension.setLength(inchExtension);
 
-        // Report velocity to SmartDashbboard
-        // this returns rotations per second.
-        double velocity = rollerMotor.getVelocity().getValueAsDouble();
-        SmartDashboard.putNumber("Roller Velocity", velocity);
-
         if(calibrating){
             leftMotor.set(0.1);
             rightMotor.set(-0.1);
@@ -195,7 +190,6 @@ public class Intake extends SubsystemBase implements IntakeIO{
     }
 
     public void simulationPeriodic(){
-        // simulate the motor activities
 
         // get the applied motor voltage
         double voltage = rightMotor.getMotorVoltage().getValueAsDouble();
@@ -376,6 +370,7 @@ public class Intake extends SubsystemBase implements IntakeIO{
         inputs.rightPosition = rotationsToInches(rightMotor.getPosition().getValueAsDouble());
         inputs.leftCurrent = leftMotor.getStatorCurrent().getValueAsDouble();
         inputs.rightCurrent = rightMotor.getStatorCurrent().getValueAsDouble();
+        inputs.rollerVelocity = rollerMotor.getVelocity().getValueAsDouble();
     }
 
 }
index 61f94c191280d3b35dff6e6590beee7f757d2795..3a4b7dc7fa194fa8a340537174f75ed41fe5ae78 100644 (file)
@@ -9,6 +9,7 @@ public interface IntakeIO {
         public static double rightPosition = 0.0;
         public static double leftCurrent = 0.0;
         public static double rightCurrent = 0.0;
+        public static double rollerVelocity = 0.0;
     }
 
     public void updateInputs();