Skip to content

Commit

Permalink
Add a shrimple URCL & data logger to robotInit in Robot.java :D (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
GalexY727 authored Feb 3, 2024
2 parents 0cae896 + c3298d2 commit 5da8c19
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package frc.robot;

import java.lang.System.Logger;

import org.littletonrobotics.urcl.URCL;

import com.revrobotics.REVPhysicsSim;

import edu.wpi.first.wpilibj.DataLogManager;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.Timer;
Expand Down Expand Up @@ -34,8 +39,10 @@ public class Robot extends TimedRobot {
public void robotInit() {
robotContainer = new RobotContainer();
Monologue.setupMonologue(robotContainer, "Robot", false, false);
}

DataLogManager.start();
URCL.start();
}
/**
* This function is called every 20 ms, no matter the mode. Used for items like
* diagnostics
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/util/MAXSwerveModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ public void configMotors() {
turningSpark.setPeriodicFramePeriod(PeriodicFrame.kStatus3, 65535);
turningSpark.setPeriodicFramePeriod(PeriodicFrame.kStatus5, 20);
}
}
}
65 changes: 65 additions & 0 deletions vendordeps/URCL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"fileName": "URCL.json",
"name": "URCL",
"version": "2024.0.1",
"frcYear": "2024",
"uuid": "84246d17-a797-4d1e-bd9f-c59cd8d2477c",
"mavenUrls": [
"https://raw.githubusercontent.com/Mechanical-Advantage/URCL/2024.0.1"
],
"jsonUrl": "https://raw.githubusercontent.com/Mechanical-Advantage/URCL/maven/URCL.json",
"javaDependencies": [
{
"groupId": "org.littletonrobotics.urcl",
"artifactId": "URCL-java",
"version": "2024.0.1"
}
],
"jniDependencies": [
{
"groupId": "org.littletonrobotics.urcl",
"artifactId": "URCL-driver",
"version": "2024.0.1",
"skipInvalidPlatforms": true,
"isJar": false,
"validPlatforms": [
"windowsx86-64",
"linuxx86-64",
"linuxathena",
"osxuniversal"
]
}
],
"cppDependencies": [
{
"groupId": "org.littletonrobotics.urcl",
"artifactId": "URCL-cpp",
"version": "2024.0.1",
"libName": "URCL",
"headerClassifier": "headers",
"sharedLibrary": false,
"skipInvalidPlatforms": true,
"binaryPlatforms": [
"windowsx86-64",
"linuxx86-64",
"linuxathena",
"osxuniversal"
]
},
{
"groupId": "org.littletonrobotics.urcl",
"artifactId": "URCL-driver",
"version": "2024.0.1",
"libName": "URCLDriver",
"headerClassifier": "headers",
"sharedLibrary": false,
"skipInvalidPlatforms": true,
"binaryPlatforms": [
"windowsx86-64",
"linuxx86-64",
"linuxathena",
"osxuniversal"
]
}
]
}

0 comments on commit 5da8c19

Please sign in to comment.