File tree Expand file tree Collapse file tree 9 files changed +97
-0
lines changed
src/main/java/net/frc5183/librobot Expand file tree Collapse file tree 9 files changed +97
-0
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,23 @@ repositories {
28
28
maven {
29
29
url = " https://maven.revrobotics.com/"
30
30
}
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
+ }
31
41
}
32
42
33
43
dependencies {
34
44
compileOnly " edu.wpi.first.wpilibj:wpilibj-java:2024.3.2"
35
45
compileOnly " edu.wpi.first.wpiutil:wpiutil-java:2024.3.2"
36
46
compileOnly " edu.wpi.first.wpilibj:commands:2024.3.2"
47
+ compileOnly " edu.wpi.first.wpilibNewCommands:wpilibNewCommands-java:2024.3.2"
37
48
38
49
// PathPlannerLib
39
50
// todo: maven repository is broken
@@ -48,6 +59,12 @@ dependencies {
48
59
// REV Robotics
49
60
compileOnly " com.revrobotics.frc:REVLib-java:2024.2.0"
50
61
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
+
51
68
testImplementation platform(' org.junit:junit-bom:5.9.1' )
52
69
testImplementation ' org.junit.jupiter:junit-jupiter'
53
70
}
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
1
+ package net .frc5183 .librobot .hardware .motor ;
2
+
3
+ public interface SwerveMotor {
4
+
5
+ }
Original file line number Diff line number Diff line change
1
+ package net .frc5183 .librobot .subsystem ;
2
+
3
+ public class LimitedSpoolerSubsystem {
4
+ // todo
5
+ }
Original file line number Diff line number Diff line change
1
+ package net .frc5183 .librobot .subsystem ;
2
+
3
+ public class MecanumDriveSubsystem {
4
+ // todo
5
+ }
Original file line number Diff line number Diff line change
1
+ package net .frc5183 .librobot .subsystem ;
2
+
3
+ public class SpinnerSubsystem {
4
+ // todo
5
+ }
Original file line number Diff line number Diff line change
1
+ package net .frc5183 .librobot .subsystem ;
2
+
3
+ import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
4
+
5
+ public class Subsystem extends SubsystemBase {}
Original file line number Diff line number Diff line change
1
+ package net .frc5183 .librobot .subsystem ;
2
+
3
+ public class SwerveDriveSubsystem {
4
+ // todo
5
+ }
Original file line number Diff line number Diff line change
1
+ package net .frc5183 .librobot .subsystem ;
2
+
3
+ public class TankDriveSubsystem {
4
+ // todo
5
+ }
You can’t perform that action at this time.
0 commit comments