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