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.
Show file Open project: shockwave4488/2015-Practice-Week-C- Class Usage Examples

Public Methods

Method 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 method

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
return void

DriveHelper() public method

public DriveHelper ( Drive &drive_ ) : System
drive_ _2015_Pre_build_week_project.SubSystems.Drive
return System

handleDeadband() public method

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
return double