C# Class CSharpRoboticsLib.WPIExtensions.EncoderExtension

Provides an extension method for setting Encoder.DistancePerPulse
Show file Open project: shockwave4488/CSharpRoboticsLib

Public Methods

Method Description
SetDistancePerPulse ( this e, double wheelDiameter, int countPerRevolution ) : void

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

Method Details

SetDistancePerPulse() public static method

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