hydr_structures/structures/control/signal.rs
1//! Explicit causal sampled hydraulic support.
2
3/// External stage support declaration without inferred endpoint attachment.
4#[derive(Clone, Debug, PartialEq, Eq)]
5pub struct ControlStageSignal {
6 /// Unique signal identity within this controller.
7 pub signal_id: String,
8 /// External hydraulic support identity.
9 pub support_id: String,
10 /// Exact common vertical reference.
11 pub datum: String,
12}
13/// Original observed stage packet for one controller decision.
14#[derive(Clone, Debug, PartialEq)]
15pub struct ControlSample {
16 /// Original controller identity.
17 pub controller_id: String,
18 /// Declared signal identity.
19 pub signal_id: String,
20 /// Declared external hydraulic support.
21 pub support_id: String,
22 /// Exact common vertical reference.
23 pub datum: String,
24 /// Original observation time in seconds.
25 pub observed_at_s: f64,
26 /// Original availability time in seconds, no later than observation.
27 pub available_at_s: f64,
28 /// Finite observed stage in metres.
29 pub stage_m: f64,
30}