Skip to content

Commit dd957be

Browse files
committed
Modified metadata recording for AKit
1 parent d0f5db4 commit dd957be

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ java {
1212

1313
def ROBOT_MAIN_CLASS = "org.frc6423.frc2025.Main"
1414

15+
version = '1.0.0'
16+
1517
// Define my targets (RoboRIO) and artifacts (deployable files)
1618
// This is added by GradleRIO's backing project DeployUtils.
1719
deploy {

src/main/java/org/frc6423/frc2025/Robot.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ public class Robot extends LoggedRobot {
2222

2323
public Robot() {
2424
// AKit init
25-
Logger.recordMetadata("ProjectName", "FRCWMIronPatriots2025");
25+
Logger.recordMetadata("ProjectName", BuildConstants.MAVEN_NAME);
26+
Logger.recordMetadata("Version", BuildConstants.VERSION);
27+
Logger.recordMetadata("BuildDate", BuildConstants.BUILD_DATE);
28+
Logger.recordMetadata("Dirty", String.valueOf(BuildConstants.DIRTY));
29+
Logger.recordMetadata("GitBranch", BuildConstants.GIT_BRANCH);
30+
Logger.recordMetadata("GitSHA", BuildConstants.GIT_SHA);
2631

2732
switch (getDeployMode()) {
2833
case SIMULATION:
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
// Copyright (c) 2025 FRC 6423 - Ward Melville Iron Patriots
2+
// https://github.com/FIRSTTeam6423
3+
//
4+
// Open Source Software; you can modify and/or share it under the terms of
5+
// MIT license file in the root directory of this project
6+
17
package org.frc6423.frc2025.subsystems;
28

3-
public class Superstructure {
4-
5-
}
9+
public class Superstructure {}

0 commit comments

Comments
 (0)