File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
src/main/kotlin/frc/robot Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ import java.time.LocalTime
15
15
class ChangeDriveMode (val driveToggle : DriveModeToggleSubsystem ,
16
16
val activating : () -> Boolean ) : CommandBase() {
17
17
/* *
18
- * Creates a new ExampleCommand .
18
+ * Creates a new ChangeDriveMode command .
19
19
*
20
- * @param m_subsystem The subsystem used by this command.
20
+ * @param driveToggle The subsystem used by this command.
21
+ * @param activating The function to call to determine if the driver
22
+ * is trying to change the mode.
21
23
*/
24
+
22
25
init {
23
26
addRequirements(driveToggle)
24
27
}
Original file line number Diff line number Diff line change @@ -15,9 +15,10 @@ import frc.robot.subsystems.VisionToggleSubsystem
15
15
class VisionModeChange (val visionToggle : VisionToggleSubsystem ,
16
16
val mode : () -> Pair <VisionModes , Boolean >) : CommandBase() {
17
17
/* *
18
- * Creates a new ExampleCommand .
18
+ * Creates a new VisionModeChange command .
19
19
*
20
- * @param m_subsystem The subsystem used by this command.
20
+ * @param visionToggle The subsystem used by this command.
21
+ * @param mode The function to get the vision mode and automatic intake state as a pair
21
22
*/
22
23
init {
23
24
addRequirements(visionToggle)
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ import java.lang.IndexOutOfBoundsException
10
10
import java.util.*
11
11
import kotlin.concurrent.schedule
12
12
13
+ /* *
14
+ * Subsystem to handle changing the command used to drive the robot.
15
+ * This is intended to test the commands, not for use in real matches.
16
+ */
17
+
13
18
class DriveModeToggleSubsystem (private val drivetrain : DrivetrainSubsystem ,
14
19
private val controller1 : XboxController ,
15
20
private val driveModes : List <CommandBase >,
You can’t perform that action at this time.
0 commit comments