pub enum Setpoint {
Local(SetPositionTargetLocalNed),
Global(SetPositionTargetGlobalInt),
}Expand description
An offboard control setpoint, in the local or global frame.
Build one with the constructors on SetPositionTargetLocalNed and
SetPositionTargetGlobalInt (in protocol::offboard), then
stream it with [Actuator::apply].
Variants§
Local(SetPositionTargetLocalNed)
A setpoint in the local NED frame.
Global(SetPositionTargetGlobalInt)
A setpoint in the global frame.
Trait Implementations§
impl Copy for Setpoint
impl StructuralPartialEq for Setpoint
Auto Trait Implementations§
impl Freeze for Setpoint
impl RefUnwindSafe for Setpoint
impl Send for Setpoint
impl Sync for Setpoint
impl Unpin for Setpoint
impl UnsafeUnpin for Setpoint
impl UnwindSafe for Setpoint
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