-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User/raghavauppuluri13/quick docs (#53)
* added docs for teensy compilation + upload * added more docs * typo fix
- Loading branch information
1 parent
fafb712
commit c0a9831
Showing
5 changed files
with
66 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,45 @@ | ||
# lunabot_embedded | ||
|
||
|
||
|
||
## Jetson Code | ||
## Jetson Teensy C++ Driver | ||
|
||
- code in `src` folder | ||
- see `RobotEffort.msg` | ||
- see `RobotState.msg` | ||
|
||
## Teensy Code | ||
## Teensy Firmware | ||
|
||
code in `firmware/teensy_main/` | ||
|
||
### Prerequisites | ||
- [Install arduino-cli compilation toolchain](https://arduino.github.io/arduino-cli/0.35/installation/#use-the-install-script) | ||
|
||
- code in `firmware/teensy_main/` | ||
### Quick start | ||
|
||
1. Setup development environment | ||
|
||
``` | ||
roscd lunabot_embedded/firmware | ||
./setup_flash_tools.sh | ||
``` | ||
|
||
2. Add aliases to simplify compilation (in `.bashrc` or `.zshrc`): | ||
``` | ||
alias teensy_compile="arduino-cli compile --build-path build --libraries lib --fqbn teensy:avr:teensy41:usb=rawhid teensy_main" | ||
alias teensy_upload="teensy_loader_cli --mcu=TEENSY41 -wv build/teensy_main.ino.hex" | ||
``` | ||
|
||
3. Compile (no hardware needed) + Upload | ||
|
||
``` | ||
roscd lunabot_embedded/firmware/teensy_main | ||
teensy_compile | ||
teensy_upload | ||
``` | ||
|
||
## Regenerate Proto files | ||
## Regenerate Proto files | ||
|
||
``` | ||
pip3 install nanopb | ||
roscd lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers | ||
python3 -m nanopb.generator.nanopb_generator -L quote RobotMsgs.proto | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters