Trait mav_sdk::grpc::gimbal::gimbal_service_server::GimbalService[][src]

pub trait GimbalService: Send + Sync + 'static {
    fn set_pitch_and_yaw<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SetPitchAndYawRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SetPitchAndYawResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn set_mode<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SetModeRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SetModeResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn set_roi_location<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SetRoiLocationRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SetRoiLocationResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Generated trait containing gRPC methods that should be implemented for use with GimbalServiceServer.

Required methods

Set gimbal pitch and yaw angles.

This sets the desired pitch and yaw angles of a gimbal. Will return when the command is accepted, however, it might take the gimbal longer to actually be set to the new angles.

Set gimbal mode.

This sets the desired yaw mode of a gimbal. Will return when the command is accepted. However, it might take the gimbal longer to actually be set to the new angles.

Set gimbal region of interest (ROI).

This sets a region of interest that the gimbal will point to. The gimbal will continue to point to the specified region until it receives a new command. The function will return when the command is accepted, however, it might take the gimbal longer to actually rotate to the ROI.

Implementors