-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65754d0
commit 810457a
Showing
19 changed files
with
554 additions
and
85 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
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
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
5 changes: 5 additions & 0 deletions
5
src/main/java/frc/robot/subsystems/cannon/CannonConstants.java
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package frc.robot.subsystems.cannon; | ||
|
||
public class CannonConstants { | ||
public static final double FIRE_TUBE_OPEN_TIME_SECONDS = 0.4; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package frc.robot.subsystems.cannon; | ||
|
||
import org.littletonrobotics.junction.AutoLog; | ||
|
||
public interface CannonIO { | ||
@AutoLog | ||
public static class CannonIOInputs { | ||
boolean isOpen; | ||
} | ||
|
||
public void updateInputs(CannonIOInputs inputs); | ||
|
||
public void open(); | ||
|
||
public void close(); | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/frc/robot/subsystems/cannon/CannonIOHardware.java
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package frc.robot.subsystems.cannon; | ||
|
||
public class CannonIOHardware implements CannonIO { | ||
|
||
@Override | ||
public void updateInputs(CannonIOInputs inputs) { | ||
inputs.isOpen = false; | ||
} | ||
|
||
@Override | ||
public void open() { | ||
|
||
} | ||
|
||
@Override | ||
public void close() { | ||
|
||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/frc/robot/subsystems/cannon/CannonIOSim.java
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package frc.robot.subsystems.cannon; | ||
|
||
public class CannonIOSim implements CannonIO { | ||
|
||
boolean isOpen = false; | ||
|
||
@Override | ||
public void updateInputs(CannonIOInputs inputs) { | ||
inputs.isOpen = false; | ||
} | ||
|
||
@Override | ||
public void open() { | ||
isOpen = true; | ||
} | ||
|
||
@Override | ||
public void close() { | ||
isOpen = false; | ||
} | ||
} |
Oops, something went wrong.