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
FieldsModifier and TypeFieldDescriptionstatic final StringDate on which the robot program was built in a human-readable format.static final longDate on which the robot program was built in unix time.static final intAre there uncommited changes?static final StringGit branch.static final StringGit commit date.static final intGit revision number.static final StringGit commit hash.static final StringMaven group which the robot package belongs to.static final StringMaven package name of the robot package.static final StringRobot code version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidpublishNetworkTables(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.
-