Main Content

uav.SensorAdaptor Class

Namespace: uav

Custom UAV sensor interface

Since R2021a

Description

The uav.SensorAdaptor class is an interface for adapting custom sensor models to for use with the uavScenario object for UAV scenario simulation.

The uav.SensorAdaptor class is a handle class.

Class Attributes

Abstract
true

For information on class attributes, see Class Attributes.

Creation

Description

sensorObj = uav.SensorAdaptor(sensorModel) creates a sensor object compatible with the uavScenario object. sensorModel is an object handle for a custom implementation of the SensorAdaptor class.

To get a template for a custom sensor implementation, use the createCustomSensorTemplate function.

Properties

expand all

Sensor update rate, specified as a positive scalar in Hz.

Example: 10 Hz

Data Types: double

Custom sensor model implementation, specified as an object handle. To get a template for a custom sensor implementation, use the createCustomSensorTemplate function.

Attributes:

SetAccess
private

Methods

expand all

Version History

Introduced in R2021a