Skip to content

Commit

Permalink
Created Shooter Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
StewardHail3433 committed Jan 13, 2024
1 parent 6953095 commit fad420a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/java/frc/robot/subsystems/Shooter.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package frc.robot.subsystems;

public interface Shooter {

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

// 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(){
return 0;
}


}

0 comments on commit fad420a

Please sign in to comment.