Package frc.robot
Class VersionConstants
java.lang.Object
frc.robot.VersionConstants
Constants that contain version metadata for the robot. Wraps an auto-generated class to add Javadoc and logging.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Date on which the robot program was built in a human-readable format.static final long
Date on which the robot program was built in unix time.static final int
Are there uncommited changes?static final String
Git branch.static final String
Git commit date.static final int
Git revision number.static final String
Git commit hash.static final String
Maven group which the robot package belongs to.static final String
Maven package name of the robot package.static final String
Robot code version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
publishNetworkTables
(NetworkTable table) Publish version metadata to a NetworkTable.
-
Field Details
-
MAVEN_GROUP
Maven group which the robot package belongs to.- See Also:
-
MAVEN_NAME
Maven package name of the robot package.- See Also:
-
VERSION
Robot code version.- See Also:
-
GIT_REVISION
public static final int GIT_REVISIONGit revision number.- See Also:
-
GIT_SHA
Git commit hash.- See Also:
-
GIT_DATE
Git commit date.- See Also:
-
GIT_BRANCH
Git branch.- See Also:
-
BUILD_DATE
Date on which the robot program was built in a human-readable format.- See Also:
-
BUILD_UNIX_TIME
public static final long BUILD_UNIX_TIMEDate on which the robot program was built in unix time.- See Also:
-
DIRTY
public static final int DIRTYAre there uncommited changes?- See Also:
-
-
Constructor Details
-
VersionConstants
public VersionConstants()
-
-
Method Details
-
publishNetworkTables
Publish version metadata to a NetworkTable.- Parameters:
table
- NetworkTable to publish metadata to.
-