Package org.team1126.lib.util
Class Alliance
java.lang.Object
org.team1126.lib.util.Alliance
Shorthand for getting the robot's alliance.
Defaults to the blue alliance if the current alliance is unknown.
-
Method Summary
-
Method Details
-
isBlue
public static boolean isBlue()Returnstrueif the robot is on the blue alliance, andfalseif the robot is on the red alliance. If the robot's alliance is unknown, defaults totrue(blue). -
isRed
public static boolean isRed()Returnstrueif the robot is on the red alliance, andfalseif the robot is on the blue alliance. If the robot's alliance is unknown, defaults tofalse(blue).
-