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

A subclass of a motor controller intended to allow controlled change in power, for safety or voltage regulation.
Наследование: ISpeedController
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Disable ( ) : void

Disable the speed controller

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources

ForcePower ( double value ) : void

Set the power of a motor regardless of the ramping limitations

Get ( ) : double

Returns the last value set to this controller

PidWrite ( double value ) : void

Set the output to the value calculated by the PIDController

RampMotor ( ISpeedController motorController ) : System

Wraps an existing ISpeedController with RampMotor{T}

RampMotor ( Type controllerType, int port ) : System

Opens a new RampingMotor of a specific motor type

Set ( double value ) : void

Sets the value to the motor, within the change limitations

Set ( double value, byte syncGroup ) : void

Sets the output value for this controller

Описание методов

Disable() публичный Метод

Disable the speed controller
public Disable ( ) : void
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources
public Dispose ( ) : void
Результат void

ForcePower() публичный Метод

Set the power of a motor regardless of the ramping limitations
public ForcePower ( double value ) : void
value double Power to set to
Результат void

Get() публичный Метод

Returns the last value set to this controller
public Get ( ) : double
Результат double

PidWrite() публичный Метод

Set the output to the value calculated by the PIDController
public PidWrite ( double value ) : void
value double
Результат void

RampMotor() публичный Метод

Wraps an existing ISpeedController with RampMotor{T}
public RampMotor ( ISpeedController motorController ) : System
motorController ISpeedController existing Motor Controller
Результат System

RampMotor() публичный Метод

Opens a new RampingMotor of a specific motor type
public RampMotor ( Type controllerType, int port ) : System
controllerType System.Type Type of motor controller (Jaguar, Victor, Spark, CAN Talon, etc.)
port int The PWM channel that the motor is attached to. 0-9 are on-board, 10-19 are on the MXP port
Результат System

Set() публичный Метод

Sets the value to the motor, within the change limitations
public Set ( double value ) : void
value double value to set to or approach
Результат void

Set() публичный Метод

Sets the output value for this controller
public Set ( double value, byte syncGroup ) : void
value double
syncGroup byte
Результат void