BowlerKernel
Public Member Functions | Private Attributes | List of all members
com.neuronrobotics.sdk.pid.PDVelocityConfiguration Class Reference

Public Member Functions

 PDVelocityConfiguration ()
 
 PDVelocityConfiguration (int group, boolean enabled, boolean inverted, boolean async, double KP, double KI, double KD, double latch, boolean useLatch, boolean stopOnLatch)
 
 PDVelocityConfiguration (BowlerDatagram conf)
 
 PDVelocityConfiguration (Object[] args)
 
String toString ()
 
void setGroup (int group)
 
int getGroup ()
 
void setKP (double kP)
 
double getKP ()
 
void setKD (double kD)
 
double getKD ()
 
Object[] getArgs ()
 

Private Attributes

int group =0
 
double KP =1
 
double KD =0
 

Detailed Description

The Class PDVelocityConfiguration.

Definition at line 10 of file PDVelocityConfiguration.java.

Constructor & Destructor Documentation

◆ PDVelocityConfiguration() [1/4]

com.neuronrobotics.sdk.pid.PDVelocityConfiguration.PDVelocityConfiguration ( )

Instantiates a new PD velocity configuration.

Definition at line 24 of file PDVelocityConfiguration.java.

◆ PDVelocityConfiguration() [2/4]

com.neuronrobotics.sdk.pid.PDVelocityConfiguration.PDVelocityConfiguration ( int  group,
boolean  enabled,
boolean  inverted,
boolean  async,
double  KP,
double  KI,
double  KD,
double  latch,
boolean  useLatch,
boolean  stopOnLatch 
)

Instantiates a new PD velocity configuration.

Parameters
groupThis is the PID group this configuration object represents
enabledTrue if the controller is running, false otherwise
invertedThis inverts the output value. Set true if the controller diverges
asyncsets the flag to send this channels async values upstream
KPProportional constant
KIIntegral constant
KDDerivative constant
latchThe value to latch into the PID controller if the home switch is hit (encoder only, not used in analog PID)
useLatchUse the value to latch into the PID controller if the home switch is hit (encoder only, not used in analog PID)
stopOnLatchSet the setpoint of the controller to current if home switch is hit (encoder only, not used in analog PID)

Definition at line 42 of file PDVelocityConfiguration.java.

References com.neuronrobotics.sdk.pid.PDVelocityConfiguration.group, com.neuronrobotics.sdk.pid.PDVelocityConfiguration.KD, com.neuronrobotics.sdk.pid.PDVelocityConfiguration.KP, com.neuronrobotics.sdk.pid.PDVelocityConfiguration.setGroup(), com.neuronrobotics.sdk.pid.PDVelocityConfiguration.setKD(), and com.neuronrobotics.sdk.pid.PDVelocityConfiguration.setKP().

Here is the call graph for this function:

◆ PDVelocityConfiguration() [3/4]

com.neuronrobotics.sdk.pid.PDVelocityConfiguration.PDVelocityConfiguration ( BowlerDatagram  conf)

◆ PDVelocityConfiguration() [4/4]

com.neuronrobotics.sdk.pid.PDVelocityConfiguration.PDVelocityConfiguration ( Object[]  args)

Instantiates a new PD velocity configuration.

Parameters
argsthe args

Definition at line 65 of file PDVelocityConfiguration.java.

References com.neuronrobotics.sdk.pid.PDVelocityConfiguration.setGroup(), com.neuronrobotics.sdk.pid.PDVelocityConfiguration.setKD(), and com.neuronrobotics.sdk.pid.PDVelocityConfiguration.setKP().

Here is the call graph for this function:

Member Function Documentation

◆ getArgs()

Object [] com.neuronrobotics.sdk.pid.PDVelocityConfiguration.getArgs ( )

◆ getGroup()

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

◆ getKD()

double com.neuronrobotics.sdk.pid.PDVelocityConfiguration.getKD ( )

◆ getKP()

double com.neuronrobotics.sdk.pid.PDVelocityConfiguration.getKP ( )

◆ setGroup()

void com.neuronrobotics.sdk.pid.PDVelocityConfiguration.setGroup ( int  group)

◆ setKD()

void com.neuronrobotics.sdk.pid.PDVelocityConfiguration.setKD ( double  kD)

◆ setKP()

void com.neuronrobotics.sdk.pid.PDVelocityConfiguration.setKP ( double  kP)

◆ toString()

String com.neuronrobotics.sdk.pid.PDVelocityConfiguration.toString ( )

Member Data Documentation

◆ group

int com.neuronrobotics.sdk.pid.PDVelocityConfiguration.group =0
private

◆ KD

double com.neuronrobotics.sdk.pid.PDVelocityConfiguration.KD =0
private

◆ KP

double com.neuronrobotics.sdk.pid.PDVelocityConfiguration.KP =1
private

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