Get motor state.

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 GetMotorState(
	NXTBrick..::.Motor motor,
	out NXTBrick..::.MotorState state
)

Parameters

motor
Type: AForge.Robotics.Lego..::.NXTBrick..::.Motor
Motor to get state for.
state
Type: AForge.Robotics.Lego..::.NXTBrick..::.MotorState %
Motor's state.

Return Value

Returns true if command was executed successfully or false otherwise.

See Also