|
BowlerKernel
|

Private Attributes | |
| IPidControlNamespace | pid |
| int | index |
| float | targetValue |
| float | currentCachedPosition |
| ArrayList< IPIDEventListener > | PIDEventListeners = new ArrayList<IPIDEventListener>() |
The Class PIDChannel.
Definition at line 12 of file PIDChannel.java.
| com.neuronrobotics.sdk.pid.PIDChannel.PIDChannel | ( | IPidControlNamespace | p, |
| int | i | ||
| ) |
Instantiates a new PID channel.
| p | the p |
| i | the i |
Definition at line 35 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.index, and com.neuronrobotics.sdk.pid.PIDChannel.setPid().

| void com.neuronrobotics.sdk.pid.PIDChannel.addPIDEventListener | ( | IPIDEventListener | l | ) |
Adds the pid event listener.
| l | the l |
Definition at line 183 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.PIDEventListeners.
Referenced by com.neuronrobotics.sdk.addons.kinematics.AbstractKinematicsNR.runHome(), com.neuronrobotics.sdk.addons.kinematics.PidPrismaticLink.setPIDChannel(), and com.neuronrobotics.sdk.addons.kinematics.PidRotoryLink.setPIDChannel().
| boolean com.neuronrobotics.sdk.pid.PIDChannel.ConfigurePIDController | ( | PIDConfiguration | config | ) |
Configure pid controller.
| config | the config |
Definition at line 91 of file PIDChannel.java.
References com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace.ConfigurePIDController(), com.neuronrobotics.sdk.pid.PIDChannel.getPid(), com.neuronrobotics.sdk.pid.PIDChannel.index, and com.neuronrobotics.sdk.pid.PIDConfiguration.setGroup().
Referenced by com.neuronrobotics.sdk.addons.kinematics.AbstractKinematicsNR.homeLink().

| void com.neuronrobotics.sdk.pid.PIDChannel.firePIDEvent | ( | PIDEvent | e | ) |
Fire pid event.
| e | the e |
Definition at line 205 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.PIDEventListeners.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.setPid().
| void com.neuronrobotics.sdk.pid.PIDChannel.firePIDLimitEvent | ( | PIDLimitEvent | e | ) |
Fire pid limit event.
| e | the e |
Definition at line 194 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.PIDEventListeners.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.setPid().
| void com.neuronrobotics.sdk.pid.PIDChannel.firePIDResetEvent | ( | int | group, |
| float | value | ||
| ) |
Fire pid reset event.
| group | the group |
| value | the value |
Definition at line 218 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.PIDEventListeners.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.setPid().
| void com.neuronrobotics.sdk.pid.PIDChannel.flush | ( | double | time | ) |
Flush.
| time | the time |
Definition at line 229 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.getCachedTargetValue(), and com.neuronrobotics.sdk.pid.PIDChannel.SetPIDSetPoint().
Referenced by com.neuronrobotics.sdk.addons.kinematics.PidPrismaticLink.flushDevice(), and com.neuronrobotics.sdk.addons.kinematics.PidRotoryLink.flushDevice().

| float com.neuronrobotics.sdk.pid.PIDChannel.getCachedTargetValue | ( | ) |
Gets the cached target value.
Definition at line 252 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.targetValue.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.flush(), com.neuronrobotics.sdk.namespace.bcs.pid.AbstractPidNamespaceImp.flushPIDChannels(), com.neuronrobotics.sdk.pid.VirtualGenericPIDDevice.flushPIDChannels(), and com.neuronrobotics.sdk.namespace.bcs.pid.LegacyPidNamespaceImp.SetAllPIDSetPoint().
| float com.neuronrobotics.sdk.pid.PIDChannel.getCurrentCachedPosition | ( | ) |
Gets 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().
| int com.neuronrobotics.sdk.pid.PIDChannel.getGroup | ( | ) |
Gets 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().
| IPidControlNamespace com.neuronrobotics.sdk.pid.PIDChannel.getPid | ( | ) |
Gets the pid.
Definition at line 163 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.pid.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.ConfigurePIDController(), com.neuronrobotics.sdk.addons.kinematics.PidPrismaticLink.flushAllDevice(), com.neuronrobotics.sdk.addons.kinematics.PidRotoryLink.flushAllDevice(), com.neuronrobotics.sdk.pid.PIDChannel.getPIDConfiguration(), com.neuronrobotics.sdk.pid.PIDChannel.GetPIDPosition(), com.neuronrobotics.sdk.addons.kinematics.AbstractKinematicsNR.homeLink(), com.neuronrobotics.sdk.pid.PIDChannel.ResetPIDChannel(), com.neuronrobotics.sdk.pid.PIDChannel.SetPDVelocity(), com.neuronrobotics.sdk.pid.PIDChannel.SetPIDInterpolatedVelocity(), and com.neuronrobotics.sdk.pid.PIDChannel.SetPIDSetPoint().
| PIDConfiguration com.neuronrobotics.sdk.pid.PIDChannel.getPIDConfiguration | ( | ) |
Gets 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.

| float com.neuronrobotics.sdk.pid.PIDChannel.GetPIDPosition | ( | ) |
Gets the pid position.
Definition at line 81 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.getPid(), com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace.GetPIDPosition(), and com.neuronrobotics.sdk.pid.PIDChannel.index.
Referenced by com.neuronrobotics.sdk.addons.kinematics.PidPrismaticLink.getCurrentPosition(), and com.neuronrobotics.sdk.addons.kinematics.PidRotoryLink.getCurrentPosition().

| boolean com.neuronrobotics.sdk.pid.PIDChannel.isAvailable | ( | ) |
Checks 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.

| void com.neuronrobotics.sdk.pid.PIDChannel.removePIDEventListener | ( | IPIDEventListener | l | ) |
Removes the pid event listener.
| l | the 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().
| boolean com.neuronrobotics.sdk.pid.PIDChannel.ResetPIDChannel | ( | ) |
Reset pid channel.
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().

| boolean com.neuronrobotics.sdk.pid.PIDChannel.ResetPIDChannel | ( | int | valueToSetCurrentTo | ) |
Reset pid channel.
| valueToSetCurrentTo | the value to set current to |
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().

| void com.neuronrobotics.sdk.pid.PIDChannel.setCachedTargetValue | ( | float | targetValue | ) |
Sets the cached target value.
| targetValue | the new cached target value |
Definition at line 238 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.getGroup(), com.neuronrobotics.sdk.common.Log.info(), and com.neuronrobotics.sdk.pid.PIDChannel.targetValue.
Referenced by com.neuronrobotics.sdk.addons.kinematics.PidPrismaticLink.cacheTargetValueDevice(), com.neuronrobotics.sdk.addons.kinematics.PidRotoryLink.cacheTargetValueDevice(), com.neuronrobotics.sdk.namespace.bcs.pid.LegacyPidNamespaceImp.GetAllPIDPosition(), com.neuronrobotics.sdk.pid.VirtualGenericPIDDevice.GetAllPIDPosition(), com.neuronrobotics.sdk.namespace.bcs.pid.LegacyPidNamespaceImp.SetAllPIDSetPoint(), and com.neuronrobotics.sdk.namespace.bcs.pid.LegacyPidNamespaceImp.SetPIDSetPoint().

| void com.neuronrobotics.sdk.pid.PIDChannel.setCurrentCachedPosition | ( | float | currentCachedPosition | ) |
Sets the current cached position.
| currentCachedPosition | the new current cached position |
Definition at line 263 of file PIDChannel.java.
References com.neuronrobotics.sdk.pid.PIDChannel.currentCachedPosition.
Referenced by com.neuronrobotics.sdk.namespace.bcs.pid.AbstractPidNamespaceImp.AbstractPidNamespaceImp(), and com.neuronrobotics.sdk.namespace.bcs.pid.AbstractPidNamespaceImp.SetCachedPosition().
| boolean com.neuronrobotics.sdk.pid.PIDChannel.SetPDVelocity | ( | int | unitsPerSecond, |
| double | seconds | ||
| ) | throws PIDCommandException |
Sets the pd velocity.
| unitsPerSecond | the units per second |
| seconds | the seconds |
| PIDCommandException | the 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().

| void com.neuronrobotics.sdk.pid.PIDChannel.setPid | ( | IPidControlNamespace | p | ) |
Sets the pid.
| p | the new pid |
Definition at line 131 of file PIDChannel.java.
References com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace.addPIDEventListener(), com.neuronrobotics.sdk.pid.PIDChannel.firePIDEvent(), com.neuronrobotics.sdk.pid.PIDChannel.firePIDLimitEvent(), com.neuronrobotics.sdk.pid.PIDChannel.firePIDResetEvent(), com.neuronrobotics.sdk.pid.PIDEvent.getGroup(), com.neuronrobotics.sdk.pid.PIDLimitEvent.getGroup(), com.neuronrobotics.sdk.pid.PIDChannel.index, and com.neuronrobotics.sdk.pid.PIDChannel.pid.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.PIDChannel().

| boolean com.neuronrobotics.sdk.pid.PIDChannel.SetPIDInterpolatedVelocity | ( | int | unitsPerSecond, |
| double | seconds | ||
| ) | throws PIDCommandException |
Sets the pid interpolated velocity.
| unitsPerSecond | the units per second |
| seconds | the seconds |
| PIDCommandException | the 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().

| boolean com.neuronrobotics.sdk.pid.PIDChannel.SetPIDSetPoint | ( | float | setpoint, |
| double | seconds | ||
| ) |
Sets the pid set point.
| setpoint | the setpoint |
| seconds | the seconds |
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().

|
private |
The current cached position.
Definition at line 24 of file PIDChannel.java.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.getCurrentCachedPosition(), and com.neuronrobotics.sdk.pid.PIDChannel.setCurrentCachedPosition().
|
private |
The index.
Definition at line 18 of file PIDChannel.java.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.ConfigurePIDController(), com.neuronrobotics.sdk.pid.PIDChannel.getGroup(), com.neuronrobotics.sdk.pid.PIDChannel.getPIDConfiguration(), com.neuronrobotics.sdk.pid.PIDChannel.GetPIDPosition(), com.neuronrobotics.sdk.pid.PIDChannel.PIDChannel(), com.neuronrobotics.sdk.pid.PIDChannel.ResetPIDChannel(), com.neuronrobotics.sdk.pid.PIDChannel.SetPDVelocity(), com.neuronrobotics.sdk.pid.PIDChannel.setPid(), com.neuronrobotics.sdk.pid.PIDChannel.SetPIDInterpolatedVelocity(), and com.neuronrobotics.sdk.pid.PIDChannel.SetPIDSetPoint().
|
private |
The pid.
Definition at line 15 of file PIDChannel.java.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.getPid(), com.neuronrobotics.sdk.pid.PIDChannel.isAvailable(), and com.neuronrobotics.sdk.pid.PIDChannel.setPid().
|
private |
The PID event listeners.
Definition at line 27 of file PIDChannel.java.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.addPIDEventListener(), com.neuronrobotics.sdk.pid.PIDChannel.firePIDEvent(), com.neuronrobotics.sdk.pid.PIDChannel.firePIDLimitEvent(), com.neuronrobotics.sdk.pid.PIDChannel.firePIDResetEvent(), and com.neuronrobotics.sdk.pid.PIDChannel.removePIDEventListener().
|
private |
The target value.
Definition at line 21 of file PIDChannel.java.
Referenced by com.neuronrobotics.sdk.pid.PIDChannel.getCachedTargetValue(), and com.neuronrobotics.sdk.pid.PIDChannel.setCachedTargetValue().