C# Класс CSharpRoboticsLib.Drive.Interfaces.TankDriveExtensions

Provides extentions for ITankDrive. These methods do not need to be called statically. You will never need to reference this class.
Показать файл Открыть проект

Открытые методы

Метод Описание
DriveForTime ( this d, double lPower, double rPower, double time, bool brake, double interval = 0.02 ) : void

Drives both motors at a set speed for a set time

DynamicDriveForTime ( this d, Action expression, double time, double interval = 0.02 ) : void

Drives accordingly to an action

DynamicDriveForTime ( this d, bool>.Func expression, double interval = 0.02 ) : void

Drives according to a function given the time

StraightForTime ( this d, double power, double time, bool brake, double interval = 0.02 ) : void

Drives at a speed for a set time

TurnForTime ( this d, double power, double time, bool brake, double interval = 0.02 ) : void

Turns the robot in place for a set time

Описание методов

DriveForTime() публичный статический Метод

Drives both motors at a set speed for a set time
public static DriveForTime ( this d, double lPower, double rPower, double time, bool brake, double interval = 0.02 ) : void
d this
lPower double
rPower double
time double
brake bool Set motors to zero when this is finished?
interval double
Результат void

DynamicDriveForTime() публичный статический Метод

Drives accordingly to an action
public static DynamicDriveForTime ( this d, Action expression, double time, double interval = 0.02 ) : void
d this
expression Action Parameter: Time elapsed
time double
interval double
Результат void

DynamicDriveForTime() публичный статический Метод

Drives according to a function given the time
public static DynamicDriveForTime ( this d, bool>.Func expression, double interval = 0.02 ) : void
d this
expression bool>.Func Returns: done driving | Arg1: Time elapsed
interval double
Результат void

StraightForTime() публичный статический Метод

Drives at a speed for a set time
public static StraightForTime ( this d, double power, double time, bool brake, double interval = 0.02 ) : void
d this
power double
time double
brake bool Set motors to zero when this is finished?
interval double
Результат void

TurnForTime() публичный статический Метод

Turns the robot in place for a set time
public static TurnForTime ( this d, double power, double time, bool brake, double interval = 0.02 ) : void
d this
power double
time double
brake bool Set motors to zero when this is finished?
interval double
Результат void