C# 클래스 CSharpRoboticsLib.WPIExtensions.RampMotor

A subclass of a motor controller intended to allow controlled change in power, for safety or voltage regulation.
상속: ISpeedController
파일 보기 프로젝트 열기: shockwave4488/CSharpRoboticsLib 1 사용 예제들

공개 메소드들

메소드 설명
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