MotorConfigSetSpeedMultiplier Method

Sets speed multiplier for motor. A negative value will reverse the motor direction. Allows for fine tuning of the motor speed to match the speed of the other motor.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public void SetSpeedMultiplier(
	float speedMultiplier,
	Motor motor
)

Parameters

speedMultiplier  Single
A value between -2 and +2 inclusive
motor  Motor
The motor that will be affected.

Exceptions

ArgumentNullExceptionmotor is null.
ArgumentOutOfRangeExceptionspeedMultiplier is out of range.

See Also