pub trait LinkedCommander: Commander {
// Required methods
fn since_update_s(&self) -> Option<f32>;
fn sync_arm(&mut self, armed: bool);
}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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".