#![no_std]
use serde::Serialize;
use serde::Deserialize;

#[derive(Serialize, Deserialize, Default, Clone)]
pub struct Command {
    /// duty cycle, -1.0 - 1.0
    pub left: f32,
    /// duty cycle, -1.0 - 1.0
    pub right: f32,
    pub ultrasonic_enable: bool,
}

#[derive(Serialize, Deserialize, Default, Clone)]
pub struct Telemetry {
    /// inches, front ultrasonic sensor
    pub distance: f32,
}
