Package frc.robot.util
Class Util
java.lang.Object
frc.robot.util.Util
General utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if the alliance is red, defaults to false if alliance isn't available.static voidrecordMetadata(String key, String value) Records a metadata string to the logs and to NetworkTables to be viewed in AdvantageScope.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
isRedAlliance
public static boolean isRedAlliance()Checks if the alliance is red, defaults to false if alliance isn't available.- Returns:
- true if the red alliance, false if blue. Defaults to false if none is available.
-
recordMetadata
Records a metadata string to the logs and to NetworkTables to be viewed in AdvantageScope.- Parameters:
key- The key to record the metadata under.value- The value to record.
-