Crates.io | safe-vex |
lib.rs | safe-vex |
version | 3.2.2-experimental |
source | src |
created_at | 2023-11-13 07:04:43.559734 |
updated_at | 2024-05-13 13:00:48.473814 |
description | A modular, reliable and comprehensive wrapper around the vex-rt library that never crashes. |
homepage | |
repository | https://github.com/GreenChild04/safe-vex |
max_upload_size | |
id | 1033343 |
size | 35,793 |
A safe, reliable and comprehensive wrapper around the vex-rt library that will never panic!
safe-vex
is an open-source community project. safe-vex
is neither endorsed by or affiliated with Innovation First, Inc. VEX and VEX Robotics are trademarks or service marks of Innovation First, Inc. safe-vex
is also not developed by the same developers at vex-rt rather it is an independant project.
you will need:
rustup
:arm-none-eabi
toolchaingcc
and libclang-dev
/libclang
libc6-dev
if rustc is throwing the error:--- stderr
/usr/lib/arm-none-eabi/include/sys/reent.h:14:10: fatal error: 'stddef.h' file not found
thread 'main' panicked at /home/dev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/vex-rt-0.15.1/build/main.rs:266:10:
Could not generate bindings.: ClangDiagnostic("/usr/lib/arm-none-eabi/include/sys/reent.h:14:10: fatal error: 'stddef.h' file not found\n")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
pros-cli
installed through pip
then:
safe-vex
project template by running the following command:git clone https://github.com/GreenChild04/safe-vex-template.git
sudo chmod a+rw /dev/ttyACM0 || sudo chmod a+rw /dev/ttyACM1
cargo run --release
Docker
)you will need:
docker
then:
safe-vex
project template by running the following command:git clone https://github.com/GreenChild04/safe-vex-template.git
docker build -t safe-vex-template
sudo chmod a+rw /dev/ttyACM0 || sudo chmod a+rw /dev/ttyACM1
docker run -it --rm --device=/dev/$(ls /dev/ttyACM*) -v .:/project -v $HOME/.cargo/registry:/home/dev/.cargo/registry safe-vex-template
cargo run --release
in the docker container while connected to the v5 brain