-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revised methods(add enable and disable
- Loading branch information
1 parent
a1224e0
commit 1d214b0
Showing
1 changed file
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |