Skip to content

Commit b310180

Browse files
committed
Added dev container config.
1 parent dc91d65 commit b310180

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

.devcontainer/devcontainer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
3+
{
4+
"name": "Debian",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/base:trixie",
7+
"features": {
8+
"ghcr.io/devcontainers-extra/features/mkdocs:2": {},
9+
"ghcr.io/devcontainers/features/python:1": {}
10+
},
11+
"postCreateCommand": "pip install --user -r requirements.txt"
12+
13+
// Features to add to the dev container. More info: https://containers.dev/features.
14+
// "features": {},
15+
16+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17+
// "forwardPorts": [],
18+
19+
// Configure tool-specific properties.
20+
// "customizations": {},
21+
22+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
23+
// "remoteUser": "root"
24+
}

docs/programming/autonomous.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Overview
66

7-
In this section we will be going over
7+
In this section we will be going over:
88

99
1. Creating an autonomous command group
1010
2. Using RobotPreferences to quickly change our autonomous values
@@ -20,9 +20,8 @@ In this section we will be going over
2020

2121
- An autonomous command is a command that is ran during "autonomous mode" under the **autonomousInit** method in **Robot.java**
2222
- 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.
2625

2726
## Creating Commands For Autonomous
2827

docs/programming/driving_robot.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ Since we will be using this command to control the robot we want it to run indef
600600
#### In the end method
601601

602602
!!! 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.
604604

605605
In the end() method type:
606606

@@ -695,7 +695,7 @@ In order to drive our robot, it needs to know what will be controlling it. To do
695695
**1)** Open Constants.java
696696
Check and make sure the `kDriverControllerPort` constant is present.
697697
**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.)
699699

700700
<!-- TODO: add details on how to find joystick port in driverstation tips -->
701701

@@ -704,11 +704,11 @@ In order to drive our robot, it needs to know what will be controlling it. To do
704704

705705
!!! summary ""
706706
**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.
708708

709709
- Commands in this method will run when the robot is enabled.
710710
- 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.
712712
- 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.
713713
- 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).
714714
- 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

Comments
 (0)