MotorDriveForDuration(Int32, Single) Method
Drives the motor at a percentage of its maximum speed (either forward or reverse) for a specified duration.
Namespace: RoboTx.ApiAssembly: Robo-Tx.Api (in Robo-Tx.Api.dll) Version: 2.0.0+58b061ffe902bd370f7f9a4c58103d8e1f566889
public void DriveForDuration(
int speedPercent,
float duration
)
Public Sub DriveForDuration (
speedPercent As Integer,
duration As Single
)
member DriveForDuration :
speedPercent : int *
duration : float32 -> unit
Parameters
- speedPercent Int32
- Percentage of motor's maximum speed, e.g. -50 or +90.
- duration Single
- Duration (in seconds) for which motor is driven.