Class RobotUtils

java.lang.Object
org.parts3492.partslib.RobotUtils

public class RobotUtils extends Object
Robot Utility Functions

Miscellaneous functions that are needed for PARTsLib.

  • Constructor Details

    • RobotUtils

      public RobotUtils()
  • Method Details

    • isBlue

      public static boolean isBlue()
      Check if the robot is on the blue alliance.
      Returns:
      True if the robot is on the blue alliance, else false.
    • isReal

      public static boolean isReal()
      Check if the robot is real or in sim.
      Returns:
      True if real, else false.
    • getAlliance

      public void getAlliance()
      Get the alliance the robot is currently on.