C# 클래스 _2015_Pre_build_week_project.SubSystems.Drive

Desctibes the DriveTrain of the robot (6 Cim, 6 Wheel, 2 Speed Tank Drive)
파일 보기 프로젝트 열기: shockwave4488/2015-Practice-Week-C- 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Drive() 공개 메소드

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

ResetEncoders() 공개 메소드

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

ResetEncoders() 공개 메소드

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
리턴 void

ResetSecondaryMotors() 공개 메소드

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

Update() 공개 메소드

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
리턴 void

Update() 공개 메소드

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
리턴 void