Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
use std::{fmt, vec};
/// Standard, 3-place semantic versioning version number.
pub type Version = (u8,u8,u8);
/// Compatible flight computer implementations.
pub enum FlightComputerModel {
Timer,
Guesser,
Knower,
}
pub type FlightEvent = String;
pub type DataPoint = (f32, f32);
pub type DataEvent = (f32, FlightEvent);
pub struct FlightData {
data: Vec<Vec<DataPoint>>,
events: Vec<FlightEvent>,
}
pub struct HwError {
why: &'static str,
}
#[derive(PartialEq)]
pub enum PortSelectorValues{
Port(String),
None,
}
impl std::fmt::Display for PortSelectorValues {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
PortSelectorValues::Port(p) => write!(f, "{}",p),
PortSelectorValues::None => write!(f, "{}", "None"),
}
}
}f49297b58This file is pinned to the selected release. Download the original to open it in your design tool.