ds 1.2.4

A library for controlling FIRST Robotics Competition robots
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate ds;

use ds::*;

use std::thread;
use std::time::Duration;

fn main() {
    let mut ds = DriverStation::new_team(4069, Alliance::new_red(1));

    thread::sleep(Duration::from_millis(1500));
    ds.restart_code();
    loop {
        println!("Code: {}", ds.trace().is_code_started());

        thread::sleep(Duration::from_millis(20));
    }
}