C# Class _2015_Pre_build_week_project.SubSystems.Drive

Desctibes the DriveTrain of the robot (6 Cim, 6 Wheel, 2 Speed Tank Drive)
Show file Open project: shockwave4488/2015-Practice-Week-C- Class Usage Examples

Public Methods

Method Description
Drive ( ) : System

Instantiates the Motor COntrollers, Encoders, Gyroscope.

ResetEncoders ( ) : void

Reset both the Left and Right drive encoders

ResetEncoders ( bool resetLeft, bool resetRight ) : void

Reset the encoders associated with the drive train

ResetSecondaryMotors ( ) : void

Sets the Secondary/Coast Motors to 0

Update ( double L, double R ) : void

Updates the drive, setting the motors to teh power specified without changing the shifter values

Update ( double L, double R, bool HighGear ) : void

Update the Drive

Method Details

Drive() public method

Instantiates the Motor COntrollers, Encoders, Gyroscope.
public Drive ( ) : System
return System

ResetEncoders() public method

Reset both the Left and Right drive encoders
public ResetEncoders ( ) : void
return void

ResetEncoders() public method

Reset the encoders associated with the drive train
public ResetEncoders ( bool resetLeft, bool resetRight ) : void
resetLeft bool Reset the Left Encoder
resetRight bool Reset the Right Encoder
return void

ResetSecondaryMotors() public method

Sets the Secondary/Coast Motors to 0
public ResetSecondaryMotors ( ) : void
return void

Update() public method

Updates the drive, setting the motors to teh power specified without changing the shifter values
public Update ( double L, double R ) : void
L double Left power
R double Right power
return void

Update() public method

Update the Drive
public Update ( double L, double R, bool HighGear ) : void
L double Left Power
R double Right Power
HighGear bool If the Robot is in High Gear
return void