Skip to content

Commit ca1578d

Browse files
authored
Merge pull request #383 from srobo/dgt/robot-settings
Add docs on the robot-settings.toml file
2 parents f0bebdf + fcf5379 commit ca1578d

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.spelling

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ srobo
2020
ST7202USBGB
2121
studentrobotics
2222
usbkey
23+
usercode
2324
Webots
2425
Zoloto
2526

kit/brain_board/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,19 @@ If you choose to use a tool other than Etcher, you may need to extract the `srob
7878
Your computer may complain that the SD card is no longer readable, however
7979
this is expected as the data being written to the SD card is not in a format
8080
that either Windows or macOS can natively understand.
81+
82+
## Robot Settings
83+
84+
Some of the features on your robot are configured using a settings file, called `robot-settings.toml`. This file is automatically created on your USB drive the first time that you run any code on your robot.
85+
86+
You can edit the settings file using your IDE or any text editor.
87+
88+
The robot settings file contains the following settings:
89+
90+
| Setting Name | Description | Default Value |
91+
|-----------------------|--------------------------------------------|--------------------|
92+
| `team_tla` | Three Letter Acronym (TLA) for your team. | Randomly generated |
93+
| `wifi_psk` | Password for the Robot WiFi | Randomly generated |
94+
| `wifi_region` | Region Identifier for the WiFi | `GB` |
95+
| `wifi_enabled` | Enables the WiFi | `true` |
96+
| `usercode_entrypoint` | The entry point to your Python code | `robot.py` |

kit/wifi.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ Your robot has now set up its very own WiFi network! It will initially have a na
1818
You can now connect to your robot in the same way you normally connect to a WiFi network.
1919
You will need a WiFi key to be able to connect and you can find this inside `robot-settings.toml` on the USB drive containing your code.
2020

21+
<div class="info">
22+
If there is no <code>robot-settings.toml</code> on your USB drive, you can generate one by first running any code on your robot. For more information see our docs on <a href="{{ site.baseurl }}/kit/brain_board#robot-settings">Robot Settings</a>.
23+
</div>
24+
2125
These details can also be printed using:
2226
~~~~ python
2327
R.print_wifi_details()

0 commit comments

Comments
 (0)