File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,24 @@ In this section we will be going over
2828
2929- Since we can't control our robot during an autonomous command we will want to create commands that allow the robot to move independently of a driver
3030
31- ## Creating the DriveDistance Command
31+ ## Creating a basic Autonomous Command
3232
3333!!! summary ""
34- ** 1)** Create a new command called ** DriveDistance**
34+ ** 1)** Create a new command called ** Autonomous**
35+
36+
37+ <details><summary>example</summary>
38+ package frc.robot.commands;
39+
40+ import edu.wpi.first.wpilibj.Timer;
41+ import edu.wpi.first.wpilibj2.command.Command;
42+ import frc.robot.subsystems.CANDriveSubsystem;
43+
44+ // Command to run the robot at 1/2 power for 1 second in autonomous
45+ public class AutoCommand extends Command {
46+
47+ }
48+ <deatils>
3549
3650!!! summary ""
3751 ** 2)** Before the constructor create a ** double** called ** distance**
You can’t perform that action at this time.
0 commit comments