GroundVehicle.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 nanosecond timing precision mode.

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

 

Method Signature

GroundVehicle.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 = myGroundVehicle1.AddSensor(myString1);

 

 

See also

GroundVehicle Object