pub struct CommandManager { /* private fields */ }Implementations§
Source§impl CommandManager
impl CommandManager
pub fn init(&mut self, params: &Params, state_manager: &mut StateManager)
pub fn update_failsafe_config( &mut self, params: &Params, state_manager: &mut StateManager, )
pub fn run( &mut self, now_ms: u32, params: &Params, rc: &mut Rc, state_manager: &mut StateManager, ) -> CommandRunResult
Sourcepub fn set_new_offboard_command(
&mut self,
now_us: u64,
msg: &OffboardControlMsg,
_params: &Params,
)
pub fn set_new_offboard_command( &mut self, now_us: u64, msg: &OffboardControlMsg, _params: &Params, )
Receives a new offboard control command. This should be called from CommManager::act_on_messages
pub fn combined_control(&self) -> &CombinedControl
pub fn rc_control(&self) -> &CombinedControl
pub fn get_control_mode(&self) -> ControlType
pub fn rc_override_active(&self) -> bool
pub fn get_rc_override(&self) -> u16
Sourcepub fn is_offboard_active(&self) -> bool
pub fn is_offboard_active(&self) -> bool
Port of C++ offboard_control_active (line 220)
Trait Implementations§
Source§impl Default for CommandManager
impl Default for CommandManager
Source§fn default() -> CommandManager
fn default() -> CommandManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandManager
impl RefUnwindSafe for CommandManager
impl Send for CommandManager
impl Sync for CommandManager
impl Unpin for CommandManager
impl UnsafeUnpin for CommandManager
impl UnwindSafe for CommandManager
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.