Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .gradle/8.11/checksums/checksums.lock
Binary file not shown.
Binary file modified .gradle/8.11/checksums/md5-checksums.bin
Binary file not shown.
Binary file modified .gradle/8.11/checksums/sha1-checksums.bin
Binary file not shown.
Binary file modified .gradle/8.11/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/8.11/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified bin/main/frc/robot/Robot.class
Binary file not shown.
Binary file modified bin/main/frc/robot/subsystems/drive/Drive.class
Binary file not shown.
Binary file modified bin/main/frc/robot/subsystems/drive/Module.class
Binary file not shown.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2025.2.1"
id "edu.wpi.first.GradleRIO" version "2025.3.1"
id "com.peterabeles.gversion" version "1.10"
id "com.diffplug.spotless" version "6.12.0"
}
Expand Down
35 changes: 35 additions & 0 deletions src/main/java/frc/robot/subsystems/elevator/Elevator.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import edu.wpi.first.wpilibj2.command.SubsystemBase;

import java.util.function.Supplier;

import edu.wpi.first.units.measure.AngularVelocity;
import edu.wpi.first.units.measure.Voltage;
import edu.wpi.first.wpilibj2.command.Command;




public class Elevator extends SubsystemBase{
private final ElevatorIOInputsAutoLogged inputs = new ElevatorIOInputsAutoLogged();



private final ElevatorIO io;

@Override
public void periodic() {
ElevatorIO.updateInputs(ElevatorInputs);
}

public Command runVoltageCommand(Supplier<Voltage> voltage) {
return run(() -> ElevatorIO.setVoltage(voltage.get())).withName("Voltage");
}

public Command runRPMCommand(Supplier<AngularVelocity> rpm) {
return run(() -> ElevatorIO.setRPM(rpm.get())).withName("RPM");
}




}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package frc.robot.subsystems.elevator;

public class ElevatorConstants {

}
32 changes: 32 additions & 0 deletions src/main/java/frc/robot/subsystems/elevator/ElevatorIO.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package frc.robot.subsystems.elevator;
import java.util.function.DoubleSupplier;

import org.littletonrobotics.junction.AutoLog;

import edu.wpi.first.math.controller.ProfiledPIDController;
import edu.wpi.first.math.trajectory.TrapezoidProfile;
import edu.wpi.first.units.measure.AngularVelocity;
import edu.wpi.first.units.measure.Current;
import edu.wpi.first.units.measure.Voltage;
//motor is neos
public interface ElevatorIO {
@AutoLog

public static class ElevatorIOInputs {
//public Voltage
public boolean limitSwitchPressed = false;
}

default void setVoltage(Double Voltage){}
default double getVoltage() {
return 67.5;
}
ProfiledPIDController controller = new ProfiledPIDController(
kP, kI, kD,
new TrapezoidProfile.Constraints(MaxVelocity, MaxAcceleration));

default void updateInputs(ElevatorIOInputs inputs) {}
default void setPIDGains(double kP, double kI, double kD) {}
default void setRPM(double rpm){}
default void setFeedForwardGains(double kS, double kV, double kA) {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package frc.robot.subsystems.elevator;

public class ElevatorIOSim {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package frc.robot.subsystems.elevator;

import edu.wpi.first.math.controller.ProfiledPIDController;

public class ElevatorIOSparkMax {
private ProfiledPIDController pidController =
new ProfiledPIDController(
}
Loading