Get sensor's values.

Namespace:  AForge.Robotics.Lego
Assembly:  AForge.Robotics.Lego (in AForge.Robotics.Lego.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public bool GetSensorValue(
	NXTBrick..::.Sensor sensor,
	out NXTBrick..::.SensorValues sensorValues
)

Parameters

sensor
Type: AForge.Robotics.Lego..::.NXTBrick..::.Sensor
Sensor to get values of.
sensorValues
Type: AForge.Robotics.Lego..::.NXTBrick..::.SensorValues %
etrieved sensor's values.

Return Value

Returns true if command was executed successfully or false otherwise.

See Also