This crate contains a port of the high-level CTRE Phoenix library.
This project is not affiliated with nor endorsed by Cross the Road Electronics.
gen
directory?The gen
directory holds a couple of files that helped generate a starting point for everything.
The gen_rust.j2
and hooks.py
were used with header2whatever
to quickly generate the initial modules.
I haven't published this to crates.io yet, but in the meantime you should be able to add a git dependency in your Cargo.toml. (Currently waiting for a usable wpilib crate to be published on crates.io.)
It builds and links when linking with the WPILib HAL, so it should work. ¯\_(ツ)_/¯
Due to licensing restrictions, with the default features enabled, the ctre
crate falls under a crayon license: all restrictions of the
Phoenix Software License Agreement and GPLv3.
Otherwise (without the default features enabled): - CTRE-derived parts are under the Phoenix Software License Agreement. - Rust-specific parts are under the MIT license.