Skip to content

Commit 7f55f64

Browse files
committed
Started updating the Autonomous command.
1 parent 6a223e4 commit 7f55f64

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/programming/autonomous.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff 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**

0 commit comments

Comments
 (0)