Skip to content

Commit

Permalink
init: final commit before we start doing branching and our normal sta…
Browse files Browse the repository at this point in the history
…ndards for coding
  • Loading branch information
Baconing committed Sep 30, 2024
1 parent 2c2c4d3 commit d798ccc
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,23 @@ repositories {
maven {
url = "https://maven.revrobotics.com/"
}

// Kauai Labs NavX
maven {
url = "https://dev.studica.com/maven/release/2024/"
}

// YAGSL
maven {
url = "https://broncbotz3481.github.io/YAGSL-Lib/yagsl/repos"
}
}

dependencies {
compileOnly "edu.wpi.first.wpilibj:wpilibj-java:2024.3.2"
compileOnly "edu.wpi.first.wpiutil:wpiutil-java:2024.3.2"
compileOnly "edu.wpi.first.wpilibj:commands:2024.3.2"
compileOnly "edu.wpi.first.wpilibNewCommands:wpilibNewCommands-java:2024.3.2"

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

// NavX
compileOnly "com.kauailabs.navx.frc:navx-frc-java:2024.1.0"

// YAGSL
compileOnly "swervelib:YAGSL-java:2024.5.0.0"

testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
Expand Down
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
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package net.frc5183.librobot.hardware.motor;

public interface SwerveMotor {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package net.frc5183.librobot.subsystem;

public class LimitedSpoolerSubsystem {
// todo
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package net.frc5183.librobot.subsystem;

public class MecanumDriveSubsystem {
// todo
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package net.frc5183.librobot.subsystem;

public class SpinnerSubsystem {
// todo
}
5 changes: 5 additions & 0 deletions src/main/java/net/frc5183/librobot/subsystem/Subsystem.java
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 {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package net.frc5183.librobot.subsystem;

public class SwerveDriveSubsystem {
// todo
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package net.frc5183.librobot.subsystem;

public class TankDriveSubsystem {
// todo
}

0 comments on commit d798ccc

Please sign in to comment.