pub struct StateManager { /* private fields */ }Implementations§
Source§impl StateManager
impl StateManager
pub fn new() -> Self
pub fn is_calibrating(&self) -> bool
pub fn update_arming_safety( &mut self, rc_throttle_low: bool, rc_throttle_override_switch_on: bool, )
pub fn update(&mut self, event: Event, params: &Params)
pub fn set_error_flag( &mut self, flag: ErrorFlag, is_present: bool, params: &Params, )
pub fn run(&mut self, params: &Params)
pub fn is_armed(&self) -> bool
pub fn is_in_failsafe(&self) -> bool
pub fn is_in_error_state(&self) -> bool
pub fn get_errors(&self) -> ErrorFlag
Auto Trait Implementations§
impl Freeze for StateManager
impl RefUnwindSafe for StateManager
impl Send for StateManager
impl Sync for StateManager
impl Unpin for StateManager
impl UnsafeUnpin for StateManager
impl UnwindSafe for StateManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.