Main Content

read

Class: uav.SensorAdaptor
Namespace: uav

Read from custom sensor model

Since R2021a

Syntax

varargout = read(sensorObj,scenario,platform,sensor,t)

Description

varargout = read(sensorObj,scenario,platform,sensor,t) reads sensor data from the sensor model sensorObj. Specify the UAV scenario, platform, sensor, and simulation time t. The function returns the sensor readings from the implemented sensor model.

Input Arguments

expand all

UAV sensor object, specified as an object of a subclass of uav.SensorAdaptor.

UAV scenario, specified as a uavScenario object. This scenario contains the uavPlatform object platform, which also contains the sensor object sensorObj, which is a subclass of uav.SensorAdaptor.

UAV scenario, specified as a uavPlatform object. This platform contains the sensor object sensorObj, which is a subclass of uav.SensorAdaptor.

UAV sensor to add to a platform in a scenario, specified as a uavSensor object.

Simulation time, specified as a positive scalar.

Output Arguments

expand all

Variable-length output argument list, returned as varargout.

Version History

Introduced in R2021a