Skip to content

Commit

Permalink
Update README to point to wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
calebchalmers authored Sep 14, 2024
1 parent 2f553ef commit b70e2ec
Showing 1 changed file with 1 addition and 58 deletions.
59 changes: 1 addition & 58 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,4 @@
# Robomaster
Firmware for the Stampede RoboMaster team -- built on Taproot and modm

## Setup guide
### Linux
* Install [Podman](https://podman.io/docs/installation#installing-on-linux)
* Install the [ST-Link](https://github.com/stlink-org/stlink#installation) package for udev permissions (required for flashing code to the robots)
* Install [VSCode](https://code.visualstudio.com/Download) (strongly recommended for ease of setup) and the [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension
* Change Dev Containers: Docker Path to "podman" in VS Code settings
* Clone the repository `git clone --recurse-submodules https://github.com/ut-ras/robomaster`
* Open the `robomaster` folder in VS Code
* From the command palette (F1), run Dev Containers: Reopen in Container
* Done! When opening the project in the future, be sure to use the Dev Container

### macOS and Windows (10/11)
* Install [Podman](https://podman.io/) and [git](https://git-scm.com/downloads)
* Start the Podman VM through Podman Desktop or by running `podman machine init --now`
* Install [VSCode](https://code.visualstudio.com/Download) (strongly recommended for ease of setup) and the [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension
* Change Dev Containers: Docker Path to "podman" in VS Code settings
* Clone the repository `git clone --recurse-submodules https://github.com/ut-ras/robomaster`
* Open the `robomaster` folder in VS Code
* From the command palette (F1), run Dev Containers: Reopen in Container
* Done! When opening the project in the future, be sure to start the Podman VM and use the Dev Container

## Building
To build the code, open the repository in its Dev Container and run
`scons build robot=<standard|hero|sentry>`.

Alternatively, use Run Build Task (Ctrl+Shift+B) in VS Code and select the robot type.

Note: Each robot has different hardware and requires variations in the code, so its important to ensure your final code builds on every robot.

## Flashing (Linux only)
To flash the code to robot hardware:
* Turn off power on the robot
* Connect an ST-Link to the robot and your computer
* Open a terminal and navigate to the repository (not in the Dev Container)
* Run `./flash.sh robot=<standard|hero|sentry>`
* Once this is complete, the firmware is flashed and you can turn the robot back on

Note: Make sure you select the correct robot when flashing. Each robot has different hardware and flashing the wrong code can cause significant malfunctions and potential safety concerns.

## Powering on the robots
Safety notice:
These robots are big and powerful. When powering them on, and especially when testing new code, always be careful and assume they will malfunction.
The wheel motors are of special concern since the robot can spin out of control or drive into someone or something and cause damage.
Do not test the shooter at normal speeds unless in a controlled environment.
In the event that anything goes wrong, the controller acts as a kill switch and can be powered off to shut down the motors.

To power on a robot and ensure proper calibration:
* Point the turret directly towards the battery and down to minimum pitch
* Turn on the battery by pressing the button once, releasing, and then holding for a few seconds
* Flip the power switch on
* Wait for the power up sequence to complete
* Power on the controller

## Resources
* [Taproot wiki](https://gitlab.com/aruw/controls/taproot/-/wikis/home): It has lots of content and we strongly recommend you browse through it to get a sense of what's there
* [Taproot API reference](https://aruw.gitlab.io/controls/taproot/): In-depth information about all the components of the library
* [modm](https://modm.io/): Website and associated documentation
* [aruw-mcb](https://gitlab.com/aruw/controls/aruw-mcb): ARUW's full robot code project available for reference
**Please visit the [Wiki](https://github.com/ut-ras/robomaster/wiki) for helpful resources and guides.**

0 comments on commit b70e2ec

Please sign in to comment.