C# Класс CSharpRoboticsLib.Drive.DriveEncoders

Encapsulates a left and right encoder and provides drive-specific calculations
Показать файл Открыть проект Примеры использования класса

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

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