Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ dependencies {
def akitJson = new groovy.json.JsonSlurper().parseText(new File(projectDir.getAbsolutePath() + "/vendordeps/AdvantageKit.json").text)
annotationProcessor "org.littletonrobotics.akit:akit-autolog:$akitJson.version"

def coppercoreVersion = "2026.2.21"
def coppercoreVersion = "2026.2.22"

implementation "com.google.code.gson:gson:2.11.0"

Expand Down
16 changes: 2 additions & 14 deletions src/main/java/frc/robot/constants/JsonConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import com.therekrab.autopilot.APTarget;
import coppercore.parameter_tools.json.JSONHandler;
import coppercore.parameter_tools.json.JSONSyncConfigBuilder;
import coppercore.parameter_tools.json.adapters.measure.JSONMeasure;
import coppercore.parameter_tools.json.helpers.JSONConverter;
import coppercore.parameter_tools.path_provider.EnvironmentHandler;
Expand All @@ -28,7 +29,6 @@
import frc.robot.auto.Autos;
import frc.robot.constants.drive.DriveConstants;
import frc.robot.constants.drive.PhysicalDriveConstants;
import frc.robot.util.json.FixedJSONSyncConfigBuilder;
import frc.robot.util.json.JSONAPTarget;
import frc.robot.util.json.JSONMotionProfileConfig;
import frc.robot.util.json.JSONRotation2d;
Expand Down Expand Up @@ -70,7 +70,7 @@ public static JSONHandler loadConstants(RobotContainer robotContainer) {
EnvironmentHandler.getEnvironmentHandler(
Filesystem.getDeployDirectory().toPath().resolve("constants/config.json").toString());

var jsonSyncSettings = new FixedJSONSyncConfigBuilder();
var jsonSyncSettings = new JSONSyncConfigBuilder();

Controllers.applyControllerConfigToBuilder(jsonSyncSettings);

Expand Down Expand Up @@ -122,12 +122,6 @@ public static JSONHandler loadConstants(RobotContainer robotContainer) {
jsonHandler.addRoute("/hopper", hopperConstants);
jsonHandler.addRoute("/indexer", indexerConstants);
jsonHandler.addRoute("/turret", turretConstants);
jsonHandler.registerPostCallback(
"/turret",
(_unused) -> {
turretConstants.initializeDiscontinuityPoint();
return true;
});
jsonHandler.addRoute("/shooter", shooterConstants);
jsonHandler.addRoute("/drive", driveConstants);
jsonHandler.addRoute("/hood", hoodConstants);
Expand All @@ -149,12 +143,6 @@ public static JSONHandler loadConstants(RobotContainer robotContainer) {
return true;
});
jsonHandler.addRoute("/shotmaps", shotMaps);
jsonHandler.registerPostCallback(
"/shotmaps",
(shotMap) -> {
shotMaps.afterJsonLoad();
return true;
});
jsonHandler.addRoute("/manualMode", manualModeConstants);
} catch (Exception ex) {
System.err.println("could not add routes for constant tuning: " + ex);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/constants/ShotMaps.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private void initializeFromDataPoints(ShotMapDataPoint[] dataPoints) {
/** Initializes the maps and then publishes tuning values for adding values to the map */
@AfterJsonLoad
public void afterJsonLoad() {
System.err.println("ShotMaps::afterJsonLoad called");
System.err.println("ShotMaps::afterJsonLoad: reinitializing maps and publishing tuning values");
initializeMaps();
publishTuningValues();
}
Expand Down
91 changes: 0 additions & 91 deletions src/main/java/frc/robot/util/json/FixedJSONSyncConfigBuilder.java

This file was deleted.

Loading