pub struct FlightClient { /* private fields */ }Expand description
ctx.flight — the scoped guided-setpoint sender.
A flight-behaviour plugin commands the vehicle through this rather than raw MAVLink writes, so the host gates the whole flight-command surface with one capability. Single-shot by design: the host owns no flight mode and no schedule, so a caller holding a velocity must re-send above the autopilot’s setpoint timeout or the vehicle brakes.
Implementations§
Source§impl FlightClient
impl FlightClient
Sourcepub async fn guided_setpoint(&self, args: Value) -> Result<Value, ClientError>
pub async fn guided_setpoint(&self, args: Value) -> Result<Value, ClientError>
Send one guided-mode setpoint. args is the setpoint map the host
validates (kind, coordinate_frame, type_mask, axis fields).
Sourcepub async fn rate_setpoint(&self, args: Value) -> Result<Value, ClientError>
pub async fn rate_setpoint(&self, args: Value) -> Result<Value, ClientError>
Send one attitude/body-rate + thrust setpoint (SET_ATTITUDE_TARGET).
args is the setpoint map the host validates (type_mask, qw/qx/
qy/qz, body_*_rate, thrust).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FlightClient
impl !UnwindSafe for FlightClient
impl Freeze for FlightClient
impl Send for FlightClient
impl Sync for FlightClient
impl Unpin for FlightClient
impl UnsafeUnpin for FlightClient
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