C# Class CSharpRoboticsLib.ControlSystems.MotionControlledSystem

Extendable controller for a IMotionController Controlled mechanism. Defines No Constructors.
Show file Open project: shockwave4488/CSharpRoboticsLib

Protected Properties

Property Type Description
Controller IMotionController
Motor ISpeedController
Periodic WPILib.Notifier
Sensor IPIDSource
SetpointTolerance double

Public Methods

Method Description
Start ( double period ) : void

Starts running Update periodically every period seconds

Stop ( ) : void

Stops running the Update periodically

Update ( ) : void

Updates the system based on SetPoint. If the system is in Manual, sets the motor to 0.

Method Details

Start() public method

Starts running Update periodically every period seconds
public Start ( double period ) : void
period double
return void

Stop() public method

Stops running the Update periodically
public Stop ( ) : void
return void

Update() public method

Updates the system based on SetPoint. If the system is in Manual, sets the motor to 0.
public Update ( ) : void
return void

Property Details

Controller protected property

The IMotionController for the system to follow
protected IMotionController Controller
return IMotionController

Motor protected property

The ISpeedController to be controlled by the IMotionController
protected ISpeedController Motor
return ISpeedController

Periodic protected property

Notifier to update the MotionControlledSystem periodically
protected Notifier,WPILib Periodic
return WPILib.Notifier

Sensor protected property

The IPIDSource for the IMotionController to react to
protected IPIDSource Sensor
return IPIDSource

SetpointTolerance protected property

Positional tolerance of the SetPoint, used in the AtSetPoint property.
protected double SetpointTolerance
return double