RWTH - Mindstorms NXT Toolbox

ResetPosition

Resets the position counter of the given motor(s).

Contents

Syntax

ResetPosition(obj, handle)

Description

ResetPosition(OBJ) or OBJ.ResetPosition Reset the position of the motor specified in OBJ. Only the internal states of the NXT brick corresponding to the specified motor(s) are reset. The motor is not moved.

ResetPosition(OBJ,HANDLE) or OBJ.ResetPosition(HANDLE) Use HANDLE to identifiy the connection to use for this command.

See also

NXTmotor, ReadFromNXT

Signature