BowlerKernel
Public Member Functions | Private Attributes | List of all members
com.neuronrobotics.sdk.pid.PIDChannel Class Reference
Collaboration diagram for com.neuronrobotics.sdk.pid.PIDChannel:
Collaboration graph
[legend]

Public Member Functions

 PIDChannel (IPidControlNamespace p, int i)
 
boolean SetPIDSetPoint (float setpoint, double seconds)
 
boolean SetPIDInterpolatedVelocity (int unitsPerSecond, double seconds) throws PIDCommandException
 
boolean SetPDVelocity (int unitsPerSecond, double seconds) throws PIDCommandException
 
float GetPIDPosition ()
 
boolean ConfigurePIDController (PIDConfiguration config)
 
PIDConfiguration getPIDConfiguration ()
 
boolean ResetPIDChannel ()
 
boolean ResetPIDChannel (int valueToSetCurrentTo)
 
void setPid (IPidControlNamespace p)
 
IPidControlNamespace getPid ()
 
void removePIDEventListener (IPIDEventListener l)
 
void addPIDEventListener (IPIDEventListener l)
 
void firePIDLimitEvent (PIDLimitEvent e)
 
void firePIDEvent (PIDEvent e)
 
void firePIDResetEvent (int group, float value)
 
void flush (double time)
 
void setCachedTargetValue (float targetValue)
 
float getCachedTargetValue ()
 
void setCurrentCachedPosition (float currentCachedPosition)
 
float getCurrentCachedPosition ()
 
boolean isAvailable ()
 
int getGroup ()
 

Private Attributes

IPidControlNamespace pid
 
int index
 
float targetValue
 
float currentCachedPosition
 
ArrayList< IPIDEventListenerPIDEventListeners = new ArrayList<IPIDEventListener>()
 

Detailed Description

The Class PIDChannel.

Definition at line 12 of file PIDChannel.java.

Constructor & Destructor Documentation

◆ PIDChannel()

com.neuronrobotics.sdk.pid.PIDChannel.PIDChannel ( IPidControlNamespace  p,
int  i 
)

Instantiates a new PID channel.

Parameters
pthe p
ithe i

Definition at line 35 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.index, and com.neuronrobotics.sdk.pid.PIDChannel.setPid().

Here is the call graph for this function:

Member Function Documentation

◆ addPIDEventListener()

void com.neuronrobotics.sdk.pid.PIDChannel.addPIDEventListener ( IPIDEventListener  l)

◆ ConfigurePIDController()

boolean com.neuronrobotics.sdk.pid.PIDChannel.ConfigurePIDController ( PIDConfiguration  config)

◆ firePIDEvent()

void com.neuronrobotics.sdk.pid.PIDChannel.firePIDEvent ( PIDEvent  e)

Fire pid event.

Parameters
ethe e

Definition at line 205 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.PIDEventListeners.

Referenced by com.neuronrobotics.sdk.pid.PIDChannel.setPid().

◆ firePIDLimitEvent()

void com.neuronrobotics.sdk.pid.PIDChannel.firePIDLimitEvent ( PIDLimitEvent  e)

Fire pid limit event.

Parameters
ethe e

Definition at line 194 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.PIDEventListeners.

Referenced by com.neuronrobotics.sdk.pid.PIDChannel.setPid().

◆ firePIDResetEvent()

void com.neuronrobotics.sdk.pid.PIDChannel.firePIDResetEvent ( int  group,
float  value 
)

Fire pid reset event.

Parameters
groupthe group
valuethe value

Definition at line 218 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.PIDEventListeners.

Referenced by com.neuronrobotics.sdk.pid.PIDChannel.setPid().

◆ flush()

void com.neuronrobotics.sdk.pid.PIDChannel.flush ( double  time)

◆ getCachedTargetValue()

float com.neuronrobotics.sdk.pid.PIDChannel.getCachedTargetValue ( )

◆ getCurrentCachedPosition()

float com.neuronrobotics.sdk.pid.PIDChannel.getCurrentCachedPosition ( )

Gets the current cached position.

Returns
the current cached position

Definition at line 274 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.currentCachedPosition.

Referenced by com.neuronrobotics.sdk.namespace.bcs.pid.AbstractPidNamespaceImp.GetCachedPosition().

◆ getGroup()

int com.neuronrobotics.sdk.pid.PIDChannel.getGroup ( )

Gets the group.

Returns
the group

Definition at line 293 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.index.

Referenced by com.neuronrobotics.sdk.pid.PIDChannel.setCachedTargetValue().

◆ getPid()

IPidControlNamespace com.neuronrobotics.sdk.pid.PIDChannel.getPid ( )

◆ getPIDConfiguration()

PIDConfiguration com.neuronrobotics.sdk.pid.PIDChannel.getPIDConfiguration ( )

Gets the PID configuration.

Returns
the PID configuration

Definition at line 102 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.getPid(), com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace.getPIDConfiguration(), and com.neuronrobotics.sdk.pid.PIDChannel.index.

Here is the call graph for this function:

◆ GetPIDPosition()

float com.neuronrobotics.sdk.pid.PIDChannel.GetPIDPosition ( )

◆ isAvailable()

boolean com.neuronrobotics.sdk.pid.PIDChannel.isAvailable ( )

Checks if is available.

Returns
true, if is available

Definition at line 283 of file PIDChannel.java.

References com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace.isAvailable(), and com.neuronrobotics.sdk.pid.PIDChannel.pid.

Here is the call graph for this function:

◆ removePIDEventListener()

void com.neuronrobotics.sdk.pid.PIDChannel.removePIDEventListener ( IPIDEventListener  l)

Removes the pid event listener.

Parameters
lthe l

Definition at line 172 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.PIDEventListeners.

Referenced by com.neuronrobotics.sdk.addons.kinematics.AbstractKinematicsNR.runHome().

◆ ResetPIDChannel() [1/2]

boolean com.neuronrobotics.sdk.pid.PIDChannel.ResetPIDChannel ( )

Reset pid channel.

Returns
true, if successful

Definition at line 111 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.getPid(), com.neuronrobotics.sdk.pid.PIDChannel.index, and com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace.ResetPIDChannel().

Here is the call graph for this function:

◆ ResetPIDChannel() [2/2]

boolean com.neuronrobotics.sdk.pid.PIDChannel.ResetPIDChannel ( int  valueToSetCurrentTo)

Reset pid channel.

Parameters
valueToSetCurrentTothe value to set current to
Returns
true, if successful

Definition at line 122 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.getPid(), com.neuronrobotics.sdk.pid.PIDChannel.index, and com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace.ResetPIDChannel().

Here is the call graph for this function:

◆ setCachedTargetValue()

void com.neuronrobotics.sdk.pid.PIDChannel.setCachedTargetValue ( float  targetValue)

◆ setCurrentCachedPosition()

void com.neuronrobotics.sdk.pid.PIDChannel.setCurrentCachedPosition ( float  currentCachedPosition)

◆ SetPDVelocity()

boolean com.neuronrobotics.sdk.pid.PIDChannel.SetPDVelocity ( int  unitsPerSecond,
double  seconds 
) throws PIDCommandException

Sets the pd velocity.

Parameters
unitsPerSecondthe units per second
secondsthe seconds
Returns
true, if successful
Exceptions
PIDCommandExceptionthe PID command exception

Definition at line 72 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.getPid(), com.neuronrobotics.sdk.pid.PIDChannel.index, and com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace.SetPDVelocity().

Here is the call graph for this function:

◆ setPid()

void com.neuronrobotics.sdk.pid.PIDChannel.setPid ( IPidControlNamespace  p)

◆ SetPIDInterpolatedVelocity()

boolean com.neuronrobotics.sdk.pid.PIDChannel.SetPIDInterpolatedVelocity ( int  unitsPerSecond,
double  seconds 
) throws PIDCommandException

Sets the pid interpolated velocity.

Parameters
unitsPerSecondthe units per second
secondsthe seconds
Returns
true, if successful
Exceptions
PIDCommandExceptionthe PID command exception

Definition at line 60 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.getPid(), com.neuronrobotics.sdk.pid.PIDChannel.index, and com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace.SetPIDInterpolatedVelocity().

Here is the call graph for this function:

◆ SetPIDSetPoint()

boolean com.neuronrobotics.sdk.pid.PIDChannel.SetPIDSetPoint ( float  setpoint,
double  seconds 
)

Sets the pid set point.

Parameters
setpointthe setpoint
secondsthe seconds
Returns
true, if successful

Definition at line 47 of file PIDChannel.java.

References com.neuronrobotics.sdk.pid.PIDChannel.getPid(), com.neuronrobotics.sdk.pid.PIDChannel.index, and com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace.SetPIDSetPoint().

Referenced by com.neuronrobotics.sdk.pid.PIDChannel.flush(), and com.neuronrobotics.sdk.addons.kinematics.AbstractKinematicsNR.runHome().

Here is the call graph for this function:

Member Data Documentation

◆ currentCachedPosition

float com.neuronrobotics.sdk.pid.PIDChannel.currentCachedPosition
private

◆ index

int com.neuronrobotics.sdk.pid.PIDChannel.index
private

◆ pid

IPidControlNamespace com.neuronrobotics.sdk.pid.PIDChannel.pid
private

◆ PIDEventListeners

ArrayList<IPIDEventListener> com.neuronrobotics.sdk.pid.PIDChannel.PIDEventListeners = new ArrayList<IPIDEventListener>()
private

◆ targetValue

float com.neuronrobotics.sdk.pid.PIDChannel.targetValue
private

The documentation for this class was generated from the following file: