Skip to content

Commit 8883b9b

Browse files
committed
init: final commit before we start doing branching and our normal standards for coding
1 parent f96e11c commit 8883b9b

File tree

9 files changed

+97
-0
lines changed

9 files changed

+97
-0
lines changed

build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,23 @@ repositories {
2828
maven {
2929
url = "https://maven.revrobotics.com/"
3030
}
31+
32+
// Kauai Labs NavX
33+
maven {
34+
url = "https://dev.studica.com/maven/release/2024/"
35+
}
36+
37+
// YAGSL
38+
maven {
39+
url = "https://broncbotz3481.github.io/YAGSL-Lib/yagsl/repos"
40+
}
3141
}
3242

3343
dependencies {
3444
compileOnly "edu.wpi.first.wpilibj:wpilibj-java:2024.3.2"
3545
compileOnly "edu.wpi.first.wpiutil:wpiutil-java:2024.3.2"
3646
compileOnly "edu.wpi.first.wpilibj:commands:2024.3.2"
47+
compileOnly "edu.wpi.first.wpilibNewCommands:wpilibNewCommands-java:2024.3.2"
3748

3849
// PathPlannerLib
3950
// todo: maven repository is broken
@@ -48,6 +59,12 @@ dependencies {
4859
// REV Robotics
4960
compileOnly "com.revrobotics.frc:REVLib-java:2024.2.0"
5061

62+
// NavX
63+
compileOnly "com.kauailabs.navx.frc:navx-frc-java:2024.1.0"
64+
65+
// YAGSL
66+
compileOnly "swervelib:YAGSL-java:2024.5.0.0"
67+
5168
testImplementation platform('org.junit:junit-bom:5.9.1')
5269
testImplementation 'org.junit.jupiter:junit-jupiter'
5370
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
package net.frc5183.librobot.hardware.gyro;
2+
3+
public abstract class SingleAxisGyroscope {
4+
/**
5+
* @return the angle in degrees
6+
*/
7+
public abstract double getAngle();
8+
9+
/**
10+
* @return the Rotation2d of the gyro.
11+
*/
12+
public abstract Rotation2d getRotation2d();
13+
14+
/**
15+
* Calibrates the gyroscope
16+
*/
17+
public abstract void calibrate();
18+
19+
/**
20+
* Resets the gyroscope
21+
*/
22+
public abstract void reset();
23+
24+
/**
25+
* Sets the offset of the gyroscope
26+
*/
27+
public abstract void setOffset(double offset);
28+
29+
/**
30+
* @return the offset of the gyroscope
31+
*/
32+
public abstract double getOffset();
33+
34+
/**
35+
* @return the axis of the gyroscope
36+
*/
37+
public abstract Axis getAxis();
38+
39+
/**
40+
* The axis of the gyroscope
41+
*/
42+
public enum Axis {
43+
YAW, PITCH, ROLL
44+
}
45+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package net.frc5183.librobot.hardware.motor;
2+
3+
public interface SwerveMotor {
4+
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package net.frc5183.librobot.subsystem;
2+
3+
public class LimitedSpoolerSubsystem {
4+
// todo
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package net.frc5183.librobot.subsystem;
2+
3+
public class MecanumDriveSubsystem {
4+
// todo
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package net.frc5183.librobot.subsystem;
2+
3+
public class SpinnerSubsystem {
4+
// todo
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package net.frc5183.librobot.subsystem;
2+
3+
import edu.wpi.first.wpilibj2.command.SubsystemBase;
4+
5+
public class Subsystem extends SubsystemBase {}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package net.frc5183.librobot.subsystem;
2+
3+
public class SwerveDriveSubsystem {
4+
// todo
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package net.frc5183.librobot.subsystem;
2+
3+
public class TankDriveSubsystem {
4+
// todo
5+
}

0 commit comments

Comments
 (0)