1 package com.neuronrobotics.sdk.pid;
3 import com.neuronrobotics.sdk.common.BowlerDatagram;
4 import com.neuronrobotics.sdk.common.ByteList;
84 public PIDConfiguration(
int group,
boolean enabled,
boolean inverted,
boolean async,
double KP,
double KI,
double KD,
double latch,
boolean useLatch,
boolean stopOnLatch,
double up,
double low,
double hStop){
119 double KP,
double KI,
double KD,
122 this(
group,
enabled,
inverted,
async,
KP,
KI,
KD,
latch,
useLatch,stopOnLatch,0,0,0);
149 System.err.println(
"No latch value sent");
164 setAsync((Integer) args[3]==1?
true:
false);
165 setKP((Double) args[4]);
166 setKI((Double) args[5]);
167 setKD((Double) args[6]);
183 String s=
"PID configuration group #"+
getGroup();
338 this.latch=(int)
latch;
383 Object[] args =
new Object[]{
static final int convertToInt(byte[] b)
double getUpperHystersys()
PIDConfiguration(int group, boolean enabled, boolean inverted, boolean async, double KP, double KI, double KD, double latch, boolean useLatch, boolean stopOnLatch, double up, double low, double hStop)
void setInverted(boolean inverted)
void setAsync(boolean async)
void setLowerHystersys(double low)
void setUpperHystersys(double up)
PIDConfiguration(BowlerDatagram conf)
void setUseLatch(boolean useLatch)
void setIndexLatch(double latch)
double getLowerHystersys()
void setEnabled(boolean enabled)
void setStopOnIndex(boolean stopOnIndex)
PIDConfiguration(int group, boolean enabled, boolean inverted, boolean async, double KP, double KI, double KD, double latch, boolean useLatch, boolean stopOnLatch)
PIDConfiguration(int channel)
PIDConfiguration(Object[] args)
double getHystersysStop()
void setHystersysStop(double hStop)