-
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.
init: final commit before we start doing branching and our normal sta…
…ndards for coding
- Loading branch information
Showing
9 changed files
with
97 additions
and
0 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
45 changes: 45 additions & 0 deletions
45
src/main/java/net/frc5183/librobot/hardware/gyro/SingleAxisGyroscope.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,45 @@ | ||
package net.frc5183.librobot.hardware.gyro; | ||
|
||
public abstract class SingleAxisGyroscope { | ||
/** | ||
* @return the angle in degrees | ||
*/ | ||
public abstract double getAngle(); | ||
|
||
/** | ||
* @return the Rotation2d of the gyro. | ||
*/ | ||
public abstract Rotation2d getRotation2d(); | ||
|
||
/** | ||
* Calibrates the gyroscope | ||
*/ | ||
public abstract void calibrate(); | ||
|
||
/** | ||
* Resets the gyroscope | ||
*/ | ||
public abstract void reset(); | ||
|
||
/** | ||
* Sets the offset of the gyroscope | ||
*/ | ||
public abstract void setOffset(double offset); | ||
|
||
/** | ||
* @return the offset of the gyroscope | ||
*/ | ||
public abstract double getOffset(); | ||
|
||
/** | ||
* @return the axis of the gyroscope | ||
*/ | ||
public abstract Axis getAxis(); | ||
|
||
/** | ||
* The axis of the gyroscope | ||
*/ | ||
public enum Axis { | ||
YAW, PITCH, ROLL | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/net/frc5183/librobot/hardware/motor/SwerveMotor.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 net.frc5183.librobot.hardware.motor; | ||
|
||
public interface SwerveMotor { | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/net/frc5183/librobot/subsystem/LimitedSpoolerSubsystem.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 net.frc5183.librobot.subsystem; | ||
|
||
public class LimitedSpoolerSubsystem { | ||
// todo | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/net/frc5183/librobot/subsystem/MecanumDriveSubsystem.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 net.frc5183.librobot.subsystem; | ||
|
||
public class MecanumDriveSubsystem { | ||
// todo | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/net/frc5183/librobot/subsystem/SpinnerSubsystem.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 net.frc5183.librobot.subsystem; | ||
|
||
public class SpinnerSubsystem { | ||
// todo | ||
} |
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 net.frc5183.librobot.subsystem; | ||
|
||
import edu.wpi.first.wpilibj2.command.SubsystemBase; | ||
|
||
public class Subsystem extends SubsystemBase {} |
5 changes: 5 additions & 0 deletions
5
src/main/java/net/frc5183/librobot/subsystem/SwerveDriveSubsystem.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 net.frc5183.librobot.subsystem; | ||
|
||
public class SwerveDriveSubsystem { | ||
// todo | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/net/frc5183/librobot/subsystem/TankDriveSubsystem.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 net.frc5183.librobot.subsystem; | ||
|
||
public class TankDriveSubsystem { | ||
// todo | ||
} |