11
22package org .frc6423 .frc2025 .subsystems ;
33
4+ import org .littletonrobotics .junction .AutoLog ;
5+
6+ import edu .wpi .first .math .geometry .Rotation2d ;
7+
48// Algae Intake Interface class
5- public interface intakeIO {
9+ public interface IntakeIO {
610
11+ @ AutoLog
712 public class intakeIOInputs {
8- public double currentAmps ;
9- public double rotationsPerSecond ;
10- public double statorCurrentAmps ;
11- public double currentVolts ;
12- public double supplyCurrentAmps ;
13+ public Rotation2d pivotPose = new Rotation2d ();
14+ public double pivotVelRadsPerSec = 0.0 ;
15+ public double pivotAppliedVolts = 0.0 ;
16+ public double pivotSupplyCurrentAmps = 0.0 ;
17+
18+ public double rollerVelRadssPerSec = 0.0 ;
19+ public double rollerAppliedVolts = 0.0 ;
20+ public double rollerSupplyCurrentAmps = 0.0 ;
1321 }
1422
23+ /** Update logged inputs */
24+ public void updateInputs (intakeIOInputs inputs );
25+
1526 /** Sets pivot motor voltage */
1627 public void setPivotVolts (double volts );
1728
1829 /** Sets roller motor voltage */
1930 public void setRollerVolts (double volts );
2031
2132 /** Stops pivot motor */
22- public default void stopPivot () {
23- setPivotVolts (0.0 );
24- }
33+ public void stopPivot ();
2534
2635 /** Stops roller motor */
27- public default void stopRoller () {
28- setRollerVolts (0.0 );
29- }
30-
31- /** Random method that I copied over */
32- public void registerSimulationCallback (Consumer <RollerIOInputsAutoLogged > callback );
36+ public void stopRoller ();
3337
3438}
0 commit comments