arfur 0.0.2

A set of bindings and a framework that builds on top of the WPILib suite, enabling Rust-based robot programs in FRC.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Example usage of a REV SparkMax wired at CAN ID 1.

use arfur_rev::prelude::*;
use arfur_wpilib::prelude::*;

fn main() -> Result<()> {
    let robot = RobotBuilder::default().initialize()?;
    let mut spark = SparkMax::new(robot, 17);

    spark.set_percentage(0.1);
    std::thread::sleep(std::time::Duration::from_secs(1));
    spark.set_percentage(0.);

    loop {}
}