1 package com.neuronrobotics.sdk.pid;
3 import java.util.ArrayList;
5 import com.neuronrobotics.sdk.common.Log;
6 import com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace;
27 private ArrayList<IPIDEventListener>
PIDEventListeners =
new ArrayList<IPIDEventListener>();
135 public void onPIDReset(
int group,
float currentValue) {
149 public void onPIDEvent(
PIDEvent e) {
240 new RuntimeException(
"Setpoint in can not be set to nan").printStackTrace();
static void info(String message)
boolean SetPIDSetPoint(float setpoint, double seconds)
boolean SetPDVelocity(int unitsPerSecond, double seconds)
void firePIDLimitEvent(PIDLimitEvent e)
void setCachedTargetValue(float targetValue)
void removePIDEventListener(IPIDEventListener l)
void firePIDResetEvent(int group, float value)
PIDConfiguration getPIDConfiguration()
boolean SetPIDInterpolatedVelocity(int unitsPerSecond, double seconds)
float getCachedTargetValue()
ArrayList< IPIDEventListener > PIDEventListeners
float currentCachedPosition
void addPIDEventListener(IPIDEventListener l)
PIDChannel(IPidControlNamespace p, int i)
boolean ConfigurePIDController(PIDConfiguration config)
void setCurrentCachedPosition(float currentCachedPosition)
float getCurrentCachedPosition()
boolean ResetPIDChannel(int valueToSetCurrentTo)
boolean ResetPIDChannel()
void firePIDEvent(PIDEvent e)
void setPid(IPidControlNamespace p)
IPidControlNamespace getPid()
boolean ConfigurePIDController(PIDConfiguration config)
boolean SetPIDSetPoint(int group, float setpoint, double seconds)
void addPIDEventListener(IPIDEventListener l)
PIDConfiguration getPIDConfiguration(int group)
float GetPIDPosition(int group)
boolean SetPDVelocity(int group, int unitsPerSecond, double seconds)
boolean ResetPIDChannel(int group, float valueToSetCurrentTo)
boolean SetPIDInterpolatedVelocity(int group, int unitsPerSecond, double seconds)