C# Class _2015_Pre_build_week_project.Team_Code.Drive_Code.DriveHelper

Does all calculations for driving the robot split-arcade style. Contains the drive object.
Afficher le fichier Open project: shockwave4488/2015-Practice-Week-C- Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

Drive() public méthode

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
Résultat void

DriveHelper() public méthode

public DriveHelper ( Drive &drive_ ) : System
drive_ _2015_Pre_build_week_project.SubSystems.Drive
Résultat System

handleDeadband() public méthode

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
Résultat double