@@ -0,0 +1,1068 @@
+package com.edinarobotics.utils.autonomous.conditions;%0A%0Aimport com.edinarobotics.utils.autonomous.BooleanCondition;%0Aimport edu.wpi.first.wpilibj.RobotBase;%0A%0A/**%0A * A %7B@link BooleanCondition%7D that returns whether or not a given robot%0A * is enabled and is in autonomous mode.%0A */%0Apublic class AutonomousCondition implements BooleanCondition%7B%0A    private RobotBase robot;%0A    %0A    /**%0A     * Constructs a new AutonomousCondition that can be used to test whether%0A     * or not a given robot is enabled and is in autonomous mode.%0A     * @param robot the robot to test for autonomous mode.%0A     */%0A    public AutonomousCondition(RobotBase robot)%7B%0A        this.robot = robot;%0A    %7D%0A    %0A    /**%0A     * Returns whether or not the robot is in autonomous mode and is enabled.%0A     * This is the result of: %0A     * %22%7B@code robot.isAutonomous() && robot.isEnabled()%7D.%22%0A     * @return %7B@code true%7D if the robot is enabled and is in autonomous mode,%0A     * %7B@code false%7D otherwise.%0A     */%0A    public boolean get()%7B%0A        return robot.isAutonomous() && robot.isEnabled();%0A    %7D%0A%7D%0A

Add AutonomousCondition to test whether or not a robot is in autonomous.