Struct mav_sdk::grpc::offboard::offboard_service_client::OffboardServiceClient[][src]

pub struct OffboardServiceClient<T> { /* fields omitted */ }
Expand description

Control a drone with position, velocity, attitude or motor commands.

The module is called offboard because the commands can be sent from external sources as opposed to onboard control right inside the autopilot “board”.

Client code must specify a setpoint before starting offboard mode. Mavsdk automatically sends setpoints at 20Hz (PX4 Offboard mode requires that setpoints are minimally sent at 2Hz).

Implementations

Attempt to create a new client by connecting to a given endpoint.

Compress requests with gzip.

This requires the server to support it otherwise it might respond with an error.

Enable decompressing responses with gzip.

Start offboard control.

Stop offboard control.

The vehicle will be put into Hold mode: https://docs.px4.io/en/flight_modes/hold.html

Check if offboard control is active.

True means that the vehicle is in offboard mode and we are actively sending setpoints.

Set the attitude in terms of roll, pitch and yaw in degrees with thrust.

Set direct actuator control values to groups #0 and #1.

First 8 controls will go to control group 0, the following 8 controls to control group 1 (if actuator_control.num_controls more than 8).

Set the attitude rate in terms of pitch, roll and yaw angular rate along with thrust.

Set the position in NED coordinates and yaw.

Set the velocity in body coordinates and yaw angular rate. Not available for fixed-wing aircraft.

Set the velocity in NED coordinates and yaw. Not available for fixed-wing aircraft.

Set the position in NED coordinates, with the velocity to be used as feed-forward.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.