You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/programming/autonomous.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Overview
6
6
7
-
In this section we will be going over
7
+
In this section we will be going over:
8
8
9
9
1. Creating an autonomous command group
10
10
2. Using RobotPreferences to quickly change our autonomous values
@@ -20,9 +20,8 @@ In this section we will be going over
20
20
21
21
- An autonomous command is a command that is ran during "autonomous mode" under the **autonomousInit** method in **Robot.java**
22
22
- It could be a single **command** or a **command group**
23
-
- It's especially helpful to have if you don't have any cameras to drive the robot during a
24
-
"sandstorm" period (2019 game mechanic where the drivers couldn't see during the pre tele-op phase)
25
-
- For this tutorial we will create an autonomous **command group** that makes the robot drive forward 5 feet, wait 5 seconds, and then pitch the shooter up during autonomous
23
+
- It's especially helpful to have if you don't have any cameras to drive the robot during autonomous (rare, but does happen)
24
+
- For this tutorial we will create a simple autonomous **command ** that makes the robot drive forward slightly.
Copy file name to clipboardExpand all lines: docs/programming/driving_robot.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -600,7 +600,7 @@ Since we will be using this command to control the robot we want it to run indef
600
600
#### In the end method
601
601
602
602
!!! summary ""
603
-
**1)** We will call the arcadeDrive method and give it 0 and 0 as the parameters.
603
+
**1)** We will call the arcadeDrive method and give it 0 and 0 as the parameters. this will stop the robot when the command completes.
604
604
605
605
In the end() method type:
606
606
@@ -695,7 +695,7 @@ In order to drive our robot, it needs to know what will be controlling it. To do
695
695
**1)** Open Constants.java
696
696
Check and make sure the `kDriverControllerPort` constant is present.
697
697
**2)** Open RobotContainer.java
698
-
- Change all `ExampleSubsystem` references to `DriveSubsystem`
698
+
- Change all `ExampleSubsystem` references to `DriveSubsystem` (or whatever the name of your drive subsystem is.)
699
699
700
700
<!-- TODO: add details on how to find joystick port in driverstation tips -->
701
701
@@ -704,11 +704,11 @@ In order to drive our robot, it needs to know what will be controlling it. To do
704
704
705
705
!!! summary ""
706
706
**1)** Back in **RobotContainer.java** We will need to remove everything inside the `configureBindings` method.
707
-
**2)** in the `configureBindings`we will call the `setDefaultCommand` of `m_drivetrain` and create a new `DriveArcade` command with parameters.
707
+
**2)** in the `configureBindings`we will call the `setDefaultCommand` of `drivetrain` and create a new `DriveArcade` command with parameters.
708
708
709
709
- Commands in this method will run when the robot is enabled.
710
710
- They also run if no other commands using the subsystem are running.
711
-
- This is why we write **addRequirements(Robot.m_subsystemName)** in the commands we create, it ends currently running commands using that subsystem to allow a new command is run.
711
+
- This is why we write **addRequirements(Robot.subsystemName)** in the commands we create, it ends currently running commands using that subsystem to allow a new command is run.
712
712
- We will the default command for the drive subsystem to an instance of the `DriveArcade` with the values provided by the joystick axes on the driver controller.
713
713
- The Y axis of the controller is inverted so that pushing the stick away from you (a negative value) drives the robot forwards (a positive value).
714
714
- Similarly for the X axis where we need to flip the value so the joystick matches the WPILib convention of counter-clockwise positive
0 commit comments