pub struct EmergencyControl { /* private fields */ }Expand description
Emergency control interface
Provides emergency stop functionality that immediately stops all motors.
Implementations§
Source§impl EmergencyControl
impl EmergencyControl
Sourcepub async fn send_emergency_stop(&self) -> Result<()>
pub async fn send_emergency_stop(&self) -> Result<()>
Send emergency stop command
Immediately stops all motors and puts the Crazyflie into a locked state. The drone will require a reboot before it can fly again.
Sourcepub async fn send_emergency_stop_watchdog(&self) -> Result<()>
pub async fn send_emergency_stop_watchdog(&self) -> Result<()>
Send emergency stop watchdog
Activates/resets a watchdog failsafe that will automatically emergency stop the drone if this message isn’t sent every 1000ms. Once activated by the first call, you must continue sending this periodically forever or the drone will automatically emergency stop. Use only if you need automatic failsafe behavior.
Auto Trait Implementations§
impl Freeze for EmergencyControl
impl RefUnwindSafe for EmergencyControl
impl Send for EmergencyControl
impl Sync for EmergencyControl
impl Unpin for EmergencyControl
impl UnsafeUnpin for EmergencyControl
impl UnwindSafe for EmergencyControl
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