Trait mav_sdk::grpc::calibration::calibration_service_server::CalibrationService [−][src]
pub trait CalibrationService: Send + Sync + 'static {
type SubscribeCalibrateGyroStream: Stream<Item = Result<CalibrateGyroResponse, Status>> + Send + Sync + 'static;
type SubscribeCalibrateAccelerometerStream: Stream<Item = Result<CalibrateAccelerometerResponse, Status>> + Send + Sync + 'static;
type SubscribeCalibrateMagnetometerStream: Stream<Item = Result<CalibrateMagnetometerResponse, Status>> + Send + Sync + 'static;
type SubscribeCalibrateLevelHorizonStream: Stream<Item = Result<CalibrateLevelHorizonResponse, Status>> + Send + Sync + 'static;
type SubscribeCalibrateGimbalAccelerometerStream: Stream<Item = Result<CalibrateGimbalAccelerometerResponse, Status>> + Send + Sync + 'static;
fn subscribe_calibrate_gyro<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateGyroRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateGyroStream>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn subscribe_calibrate_accelerometer<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateAccelerometerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateAccelerometerStream>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn subscribe_calibrate_magnetometer<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateMagnetometerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateMagnetometerStream>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn subscribe_calibrate_level_horizon<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateLevelHorizonRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateLevelHorizonStream>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn subscribe_calibrate_gimbal_accelerometer<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateGimbalAccelerometerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateGimbalAccelerometerStream>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn cancel<'life0, 'async_trait>(
&'life0 self,
request: Request<CancelRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<CancelResponse>, 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 CalibrationServiceServer.
Associated Types
type SubscribeCalibrateGyroStream: Stream<Item = Result<CalibrateGyroResponse, Status>> + Send + Sync + 'static
type SubscribeCalibrateGyroStream: Stream<Item = Result<CalibrateGyroResponse, Status>> + Send + Sync + 'static
Server streaming response type for the SubscribeCalibrateGyro method.
type SubscribeCalibrateAccelerometerStream: Stream<Item = Result<CalibrateAccelerometerResponse, Status>> + Send + Sync + 'static
type SubscribeCalibrateAccelerometerStream: Stream<Item = Result<CalibrateAccelerometerResponse, Status>> + Send + Sync + 'static
Server streaming response type for the SubscribeCalibrateAccelerometer method.
type SubscribeCalibrateMagnetometerStream: Stream<Item = Result<CalibrateMagnetometerResponse, Status>> + Send + Sync + 'static
type SubscribeCalibrateMagnetometerStream: Stream<Item = Result<CalibrateMagnetometerResponse, Status>> + Send + Sync + 'static
Server streaming response type for the SubscribeCalibrateMagnetometer method.
type SubscribeCalibrateLevelHorizonStream: Stream<Item = Result<CalibrateLevelHorizonResponse, Status>> + Send + Sync + 'static
type SubscribeCalibrateLevelHorizonStream: Stream<Item = Result<CalibrateLevelHorizonResponse, Status>> + Send + Sync + 'static
Server streaming response type for the SubscribeCalibrateLevelHorizon method.
type SubscribeCalibrateGimbalAccelerometerStream: Stream<Item = Result<CalibrateGimbalAccelerometerResponse, Status>> + Send + Sync + 'static
type SubscribeCalibrateGimbalAccelerometerStream: Stream<Item = Result<CalibrateGimbalAccelerometerResponse, Status>> + Send + Sync + 'static
Server streaming response type for the SubscribeCalibrateGimbalAccelerometer method.
Required methods
fn subscribe_calibrate_gyro<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateGyroRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateGyroStream>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subscribe_calibrate_gyro<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateGyroRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateGyroStream>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Perform gyro calibration.
fn subscribe_calibrate_accelerometer<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateAccelerometerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateAccelerometerStream>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subscribe_calibrate_accelerometer<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateAccelerometerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateAccelerometerStream>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Perform accelerometer calibration.
fn subscribe_calibrate_magnetometer<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateMagnetometerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateMagnetometerStream>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subscribe_calibrate_magnetometer<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateMagnetometerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateMagnetometerStream>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Perform magnetometer calibration.
fn subscribe_calibrate_level_horizon<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateLevelHorizonRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateLevelHorizonStream>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subscribe_calibrate_level_horizon<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateLevelHorizonRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateLevelHorizonStream>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Perform board level horizon calibration.
fn subscribe_calibrate_gimbal_accelerometer<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateGimbalAccelerometerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateGimbalAccelerometerStream>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn subscribe_calibrate_gimbal_accelerometer<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCalibrateGimbalAccelerometerRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeCalibrateGimbalAccelerometerStream>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Perform gimbal accelerometer calibration.