MotorSetAcceleration Method

Configures motor acceleration by specifying the time (in seconds) it takes to reach maximum speed from stationary position.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public void SetAcceleration(
	float timeToMaxSpeed
)

Parameters

timeToMaxSpeed  Single
Time (in seconds) to reach maximum speed from stationary. Minimum value is 0, maximum is 10.

Exceptions

ArgumentOutOfRangeExceptiontimeToMaxSpeed is out of range.
IOExceptionSerial port is in error state or not open.

See Also