C# 클래스 CSharpRoboticsLib.Drive.DriveEncoders

Encapsulates a left and right encoder and provides drive-specific calculations
파일 보기 프로젝트 열기: shockwave4488/CSharpRoboticsLib 1 사용 예제들

공개 메소드들

메소드 설명
DriveEncoders ( WPILib.Encoder left, WPILib.Encoder right ) : CSharpRoboticsLib.WPIExtensions

Encapsulates a Left and Right Encoder, with the right encoder reversed.

DriveEncoders ( int lAChannel, int lBChannel, int rAChannel, int rBChannel ) : CSharpRoboticsLib.WPIExtensions

Initialializes both encoders to the channels specified, with the RIGHT encoder reversed.

Reset ( ) : void

Resets both encoders

SetDistancePerPulse ( double wheelDiameter, int countPerRevolution ) : void

Sets the Left and Right DistancePerPulse in feet based on Wheel Diameter and counts per revolution

보호된 메소드들

메소드 설명
DriveEncoders ( ) : CSharpRoboticsLib.WPIExtensions

Just for EnhancedDriveEncoders

메소드 상세

DriveEncoders() 보호된 메소드

Just for EnhancedDriveEncoders
protected DriveEncoders ( ) : CSharpRoboticsLib.WPIExtensions
리턴 CSharpRoboticsLib.WPIExtensions

DriveEncoders() 공개 메소드

Encapsulates a Left and Right Encoder, with the right encoder reversed.
public DriveEncoders ( WPILib.Encoder left, WPILib.Encoder right ) : CSharpRoboticsLib.WPIExtensions
left WPILib.Encoder Left Encoder
right WPILib.Encoder Right Encoder
리턴 CSharpRoboticsLib.WPIExtensions

DriveEncoders() 공개 메소드

Initialializes both encoders to the channels specified, with the RIGHT encoder reversed.
public DriveEncoders ( int lAChannel, int lBChannel, int rAChannel, int rBChannel ) : CSharpRoboticsLib.WPIExtensions
lAChannel int Left A Channel
lBChannel int Left B Channel
rAChannel int Right A Channel
rBChannel int Right B Channel
리턴 CSharpRoboticsLib.WPIExtensions

Reset() 공개 메소드

Resets both encoders
public Reset ( ) : void
리턴 void

SetDistancePerPulse() 공개 메소드

Sets the Left and Right DistancePerPulse in feet based on Wheel Diameter and counts per revolution
public SetDistancePerPulse ( double wheelDiameter, int countPerRevolution ) : void
wheelDiameter double Diameter of your drive wheels IN INCHES
countPerRevolution int
리턴 void