C# 클래스 CSharpRoboticsLib.WPIExtensions.EncoderExtension

Provides an extension method for setting Encoder.DistancePerPulse
파일 보기 프로젝트 열기: shockwave4488/CSharpRoboticsLib

공개 메소드들

메소드 설명
SetDistancePerPulse ( this e, double wheelDiameter, int countPerRevolution ) : void

Sets DistancePerPulse to the proper value given by diameter of a wheel and counts per revolution

메소드 상세

SetDistancePerPulse() 공개 정적인 메소드

Sets DistancePerPulse to the proper value given by diameter of a wheel and counts per revolution
public static SetDistancePerPulse ( this e, double wheelDiameter, int countPerRevolution ) : void
e this
wheelDiameter double Diameter of the wheel. Units used here will determine units of
countPerRevolution int Counts per revolution of the encoder. Usually 360 or 256.
리턴 void