nxtlib/src/Protocol.cs
/// <summary>
/// [Native] Reset the motor rotation sensor.
/// </summary>
/// <param name="port">The port of the selected motor.</param>
/// <param name="relative">If set to true, the reset's position will be relative to the last
///  movement.  Otherwise, it is set at an absolute position.</param>
[Native] Reset the motor rotation sensor.
[ Native ] Reset the motor rotation sensor .
public void ResetMotorPosition(MotorPortSingle port, bool relative)
        {
            byte[] request = new byte[] {
            (byte) (0x00),
            (byte) (DirectCommand.ResetMotorPosition),
            (byte) port,
            (byte) (relative ? 0xFF : 0x00)
            };
            CompleteRequest(request);
            return;
        }
public void ResetMotorPosition ( MotorPortSingle port , bool relative ) { byte [ ] request = new byte [ ] { ( byte ) ( 0x00 ) , ( byte ) ( DirectCommand . ResetMotorPosition ) , ( byte ) port , ( byte ) ( relative ? 0xFF : 0x00 ) } ; CompleteRequest ( request ) ; return ; }
[Native] Reset the motor rotation sensor.
[ Native ] Reset the motor rotation sensor .
port
MotorPortSingle
The port of the selected motor.
The port of the selected motor .
relative
bool
If set to true, the reset's position will be relative to the last
movement.  Otherwise, it is set at an absolute position.
If set to true the reset ' s position will be relative to the last movement . Otherwise it is set at an absolute position .