Skip to content

Commit

Permalink
Revised methods(add enable and disable
Browse files Browse the repository at this point in the history
  • Loading branch information
StewardHail3433 committed Jan 13, 2024
1 parent a1224e0 commit 1d214b0
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/main/java/frc/robot/subsystems/Shooter.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
package frc.robot.subsystems;

public interface Shooter {
// Disable the shooter
public default void disable(double voltage) {}

// Sets enable(true/false) to be used for the motors. on=true and off=false
public default void setEnabled(boolean isEnabled) {}
// Enable the shooter.
public default void enable(double voltage) {}

// Get enable(true/false). on=true and off=false
public default boolean getEnabled() {
return false;
}

// Sets the voltage of the motors.
public default void setVoltage(double voltage) {}

// gets the voltage of the motors.
public default double getVoltage() {
// Set the voltage of the motors.
public default double setVoltage () {
return 0;
}
}

0 comments on commit 1d214b0

Please sign in to comment.