C# Класс CSharpRoboticsLib.WPIExtensions.EncoderExtension

Provides an extension method for setting Encoder.DistancePerPulse
Показать файл Открыть проект

Открытые методы

Метод Описание
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