pub trait LinkedCommander: Commander {
// Required methods
fn since_update_s(&self) -> Option<f32>;
fn sync_arm(&mut self, armed: bool);
fn sync_regime(&mut self, regime: FlightRegime);
}Expand description
A Commander fed by a link, which knows how long ago it last heard it.
Required Methods§
Sourcefn since_update_s(&self) -> Option<f32>
fn since_update_s(&self) -> Option<f32>
Seconds since the last valid message, as of the last
next_command call; None if none has arrived. Measured on
this side from the dt the commander is given, so it needs no clock from the sender.
Sourcefn sync_arm(&mut self, armed: bool)
fn sync_arm(&mut self, armed: bool)
Sets the arm state this commander reports to armed. A FailsafeCommander calls it
when it hands control back, with the vehicle’s actual arm state, so an arm request this
commander latched while the fallback flew (and that the vehicle never acted on) is
dropped rather than arming the vehicle at the handover.
Sourcefn sync_regime(&mut self, regime: FlightRegime)
fn sync_regime(&mut self, regime: FlightRegime)
Sets the regime this commander requests to regime. A FailsafeCommander calls it
when it hands control back, with the regime the fallback flew, so a regime request from
before the link went quiet (or latched while the fallback flew) is dropped rather than
transitioning the vehicle at the handover.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".