MotorConfigSetSpeedLimits Method

Sets the reverse and forward speed limits of a motor.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public void SetSpeedLimits(
	int maxReverseSpeed,
	int maxForwardSpeed,
	Motor motor
)

Parameters

maxReverseSpeed  Int32
A value between -100 and 0 inclusive.
maxForwardSpeed  Int32
A value between 1 and 100 inclusinve.
motor  Motor
The motor that will be affected.

Exceptions

ArgumentNullExceptionmotor is null.
ArgumentOutOfRangeExceptionmaxReverseSpeed or maxForwardSpeed is out of range.

See Also