C# Класс _2015_Pre_build_week_project.Team_Code.Drive_Code.DriveHelper

Does all calculations for driving the robot split-arcade style. Contains the drive object.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Drive ( double speed, double turn, bool isQuickTurn, bool forceHigh, bool forceLow, bool autoShift ) : void

Does all calculations and subroutines for driving the robot split-arcade style.

DriveHelper ( Drive &drive_ ) : System
handleDeadband ( double val, double deadband ) : double

Handles the deadband in the controllers. For Xbox controllers, the deadband on the joysticks is about 0.2

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

Drive() публичный Метод

Does all calculations and subroutines for driving the robot split-arcade style.
public Drive ( double speed, double turn, bool isQuickTurn, bool forceHigh, bool forceLow, bool autoShift ) : void
speed double Linear Control
turn double Rotational Control
isQuickTurn bool Allows less smooth, but faster turning. Will likely be turned on in low gear.
forceHigh bool Force High Gear
forceLow bool Force Low Gear
autoShift bool Allows automatic shifting
Результат void

DriveHelper() публичный Метод

public DriveHelper ( Drive &drive_ ) : System
drive_ _2015_Pre_build_week_project.SubSystems.Drive
Результат System

handleDeadband() публичный Метод

Handles the deadband in the controllers. For Xbox controllers, the deadband on the joysticks is about 0.2
public handleDeadband ( double val, double deadband ) : double
val double Input Value
deadband double deadband
Результат double