Set motor state.

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

Syntax

C#
public bool SetMotorState(
	NXTBrick..::.Motor motor,
	NXTBrick..::.MotorState state
)

Parameters

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

Return Value

Returns true if command was executed successfully or false otherwise.

See Also