Vehicle.AddSensor(String) Method

Top 

Description

Creates a new Sensor object and adds it as hardware to the Vehicle.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

Vehicle.AddSensor(

String sensorName)

 

 

Arguments

sensorName


Description:

The name that will be applied to the created Sensor.

 

 

 

Return Value

Type:

number

 

 

Returns the new length of the Vehicle.Sensors array. The newly created Sensor will be accessible at an index of the return value - 1.

 

Syntax

myVariable1 = myVehicle1.AddSensor(myString1);

 

 

See also

Vehicle Object