Alliance Manager
import com.btwrobotics.WhatTime.frc.DriverStation.AllianceManager;
Methods
getCurrentAlliance()Gets the current alliance for the robot from DriverStation.
Returns the current alliance as
Optional<Alliance>
getOpposingAlliance()Gets the opposing alliance for the robot from DriverStation.
Returns the opposing alliance as
Optional<Alliance>
toggleAlliance(alliance)Takes in an
AllianceorOptional<Alliance>objectReturns the opposite alliance of the input as an
AllianceorOpptional<Alliance>respectively