Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/first-rust-competition/first-rust-competition

Rusty Robots: https://crates.io/crates/wpilib and https://crates.io/crates/cargo-frc
https://github.com/first-rust-competition/first-rust-competition

first-robotics-competition frc rust wpilib

Last synced: about 18 hours ago
JSON representation

Rusty Robots: https://crates.io/crates/wpilib and https://crates.io/crates/cargo-frc

Awesome Lists containing this project

README

        

# FIRST Rust Competition

[![Build Status](https://travis-ci.com/first-rust-competition/first-rust-competition.svg?branch=master)](https://travis-ci.com/first-rust-competition/first-rust-competition)
[![Crates.io](https://img.shields.io/crates/v/wpilib.svg)](https://crates.io/crates/wpilib/)
[![Docs.rs](https://docs.rs/wpilib/badge.svg)](https://docs.rs/wpilib)

A monorepo for `wpilib` for programming FRC robots and `cargo-frc` for deploying said code. Currently a pre-alpha WIP.

## Getting Started

Parts of this repository are designed to be compiled for a [RoboRIO](http://sine.ni.com/nips/cds/view/p/lang/en/nid/213308), the
processor used in the FIRST Robotics Competition.
To cross-compile your code and run Rust on your RoboRIO, follow the instructions in [WPILib's README](wpilib/README.md).

Examples can be found in [wpilib-examples](wpilib-examples).

To deploy code you write using `wpilib`, use [cargo-frc](cargo-frc).

A small project template is available in [quickstart.zip](quickstart.zip).

## Other Rust Projects

If you want to go further with Rust development for FRC, check out these other community projects:

- [ctre-rs](https://github.com/auscompgeek/ctre-rs) for functionality found in CTRE Phoenix.
- [nt-rs](https://gitlab.com/Redrield/nt-rs) for using NetworkTables.
- [navx-rs](https://github.com/Eaglestrike/navX-rs) for interfacing with Kauai Labs's gyroscope.

## Building

Verify you can build `wpilib`, (see its [README](wpilib/README.md)) then run `make all`. `cargo-frc` should build out of the box, but you should `cargo install` it
to [use it properly](cargo-frc/README.md).

For a full list of build requirements, see the [Dockerfile](Dockerfile) used for Travis CI.

## License

The contents of this repository are distributed under the terms of both the
MIT license and the Apache License (Version 2.0). By contributing, you agree
to license your contribution under these terms.

See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), for details.