antaeus 0.3.8

A Versatile Framework for Vexide
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use vexide::prelude::*;
pub mod auton;
pub mod hardware;
pub mod opcontrol;

impl Compete for hardware::Robot {
    async fn autonomous(&mut self) { auton::main_auton(self).await; }

    async fn driver(&mut self) { opcontrol::opcontrol(self); }
}

#[vexide::main]
async fn main(peripherals: Peripherals) {
    let robot = hardware::Robot::default_config(peripherals);

    robot.compete().await;
}