submodules!

This commit is contained in:
vaishu 2026-03-03 19:35:00 -05:00
parent 43c350162f
commit 492b2ba359
1 changed files with 31 additions and 3 deletions

View File

@ -6,17 +6,45 @@ package frc.robot.subsystems;
import org.fairportrobotics.frc.posty.TestableSubsystem;
import org.fairportrobotics.frc.posty.test.PostTest;
import com.ctre.phoenix6.hardware.TalonFX;
import static org.fairportrobotics.frc.posty.assertions.Assertions.*;
import edu.wpi.first.wpilibj2.command.Command;
public class HopperSubsystem extends TestableSubsystem {
private Talonsrx
private TalonFX spindexerMotor;
private TalonFX kickerMotor;
/** Creates a new HopperSubsystem. */
public HopperSubsystem() {}
public HopperSubsystem() {
spindexerMotor = new TalonFX(0);
kickerMotor = new TalonFX(1);
}
/**
public void feed(){
kickerMotor.set(0.5);
}
public void reverse(){
kickerMotor.set(-0.5);
}
public void stop(){
kickerMotor.set(0);
}
public void spin(double speed){
spindexerMotor.set(speed);
}
/**
* Example command factory method.
*
* @return a command