Class Util

java.lang.Object
frc.robot.util.Util

public class Util extends Object
General utilities.
  • 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

      public static void recordMetadata(String key, String value)
      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.