Skip to content

Experimental robot codebase with Rust πŸ¦€πŸ€–

Notifications You must be signed in to change notification settings

Team846/tetanus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Installation

  1. Clone repository
  2. Install rust
  3. Install RoboRIO toolchain
  4. Install clang (required by bindgen)
  5. Install wpilib/vendor dependencies
    • Run the install_deps.py script
      • $ cd frc-sys && ./install_deps.py
  6. Compile 2021 swerve robot test package
    • $ cargo build -p r2021-swerve --release
  7. Code editor

Project structure

β”œβ”€β”€ frc             - package containing friendly wrappers around frc-sys
β”œβ”€β”€ frc-sys         - package containing generated rust bindings to frc libraries
β”‚   β”œβ”€β”€ include     - frc headers installed with install_deps.py
β”‚   β”œβ”€β”€ lib         - frc libraries installed with install_deps.py
β”‚   β”œβ”€β”€ src         - frc autogenerated bindings
β”‚   β”œβ”€β”€ vendordeps  - frc dependency JSON files
β”‚   └── wrappers    - frc C headers to generate rust bindings from
β”œβ”€β”€ r2021-swerve    - 2021 swerve robot (mainly for testing)
└── toolchain       - roborio toolchain

Remote debugging

Reference: https://github.com/frc1678/robot-code-public/blob/master/docs/gdb.md

  1. Debug server on robot
    • ssh into robot
    • Kill autostarting code
      • $ . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t 2> /dev/null
    • Run gdbserver
      • $ gdbserver localhost:2345 ./frcUserProgram
  2. Run gdb on computer

About

Experimental robot codebase with Rust πŸ¦€πŸ€–

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published