#[derive(Clone, Copy, Debug, PartialEq)]
pub struct GateActuatorPosition {
pub opening_m: f64,
pub lower_opening_m: f64,
pub upper_opening_m: f64,
pub absolute_error_m: f64,
}
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct GateActuatorAnchor {
pub time_s: f64,
pub position: GateActuatorPosition,
}
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct GateActuatorTimeExpansion {
pub high_s: f64,
pub low_s: f64,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GateActuatorPhase {
BeforeWindow,
InsideWindow,
Complete,
BeyondHorizon,
Stalled,
UnresolvedWithStalledSupport,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum GateActuatorSupport {
ExactClosed,
CertainlyPositive,
ClosureUnresolved,
}
#[derive(Clone, Debug, PartialEq)]
pub struct GateActuatorOutput {
pub element: usize,
pub actuator_id: String,
pub structure_id: String,
pub time_s: f64,
pub target_opening_m: f64,
pub position: GateActuatorPosition,
pub phase: GateActuatorPhase,
pub support: GateActuatorSupport,
pub arrival_lower_s: Option<f64>,
pub arrival_upper_s: Option<f64>,
}