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

Public Member Functions

 PIDEvent ()
 
 PIDEvent (int chan, float tick, long time, int velocity)
 
void set (int chan, float tick, long time, int velocity)
 
 PIDEvent (BowlerDatagram data)
 
void setGroup (int channel)
 
int getGroup ()
 
void setValue (float ticks)
 
float getValue ()
 
void setTimeStamp (long timeStamp)
 
long getTimeStamp ()
 
String toString ()
 
void setVelocity (int vel)
 
int getVelocity ()
 

Private Attributes

int channel
 
float ticks
 
long timeStamp
 
int velocity
 

Detailed Description

The Class PIDEvent.

Definition at line 10 of file PIDEvent.java.

Constructor & Destructor Documentation

◆ PIDEvent() [1/3]

com.neuronrobotics.sdk.pid.PIDEvent.PIDEvent ( )

Definition at line 24 of file PIDEvent.java.

◆ PIDEvent() [2/3]

com.neuronrobotics.sdk.pid.PIDEvent.PIDEvent ( int  chan,
float  tick,
long  time,
int  velocity 
)

Instantiates a new PID event.

Parameters
chanthe chan
tickthe tick
timethe time
velocitythe velocity

Definition at line 36 of file PIDEvent.java.

References com.neuronrobotics.sdk.pid.PIDEvent.setGroup(), com.neuronrobotics.sdk.pid.PIDEvent.setTimeStamp(), com.neuronrobotics.sdk.pid.PIDEvent.setValue(), com.neuronrobotics.sdk.pid.PIDEvent.setVelocity(), and com.neuronrobotics.sdk.pid.PIDEvent.velocity.

Here is the call graph for this function:

◆ PIDEvent() [3/3]

com.neuronrobotics.sdk.pid.PIDEvent.PIDEvent ( BowlerDatagram  data)

Member Function Documentation

◆ getGroup()

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

◆ getTimeStamp()

long com.neuronrobotics.sdk.pid.PIDEvent.getTimeStamp ( )

Gets the time stamp.

Returns
the time stamp

Definition at line 121 of file PIDEvent.java.

References com.neuronrobotics.sdk.pid.PIDEvent.timeStamp.

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

◆ getValue()

float com.neuronrobotics.sdk.pid.PIDEvent.getValue ( )

◆ getVelocity()

int com.neuronrobotics.sdk.pid.PIDEvent.getVelocity ( )

Gets the velocity.

Returns
the velocity

Definition at line 147 of file PIDEvent.java.

References com.neuronrobotics.sdk.pid.PIDEvent.velocity.

◆ set()

void com.neuronrobotics.sdk.pid.PIDEvent.set ( int  chan,
float  tick,
long  time,
int  velocity 
)

◆ setGroup()

void com.neuronrobotics.sdk.pid.PIDEvent.setGroup ( int  channel)

Sets the group.

Parameters
channelthe new group

Definition at line 76 of file PIDEvent.java.

References com.neuronrobotics.sdk.pid.PIDEvent.channel.

Referenced by com.neuronrobotics.sdk.pid.PIDEvent.PIDEvent(), and com.neuronrobotics.sdk.pid.PIDEvent.set().

◆ setTimeStamp()

void com.neuronrobotics.sdk.pid.PIDEvent.setTimeStamp ( long  timeStamp)

Sets the time stamp.

Parameters
timeStampthe new time stamp

Definition at line 112 of file PIDEvent.java.

References com.neuronrobotics.sdk.pid.PIDEvent.timeStamp.

Referenced by com.neuronrobotics.sdk.pid.PIDEvent.PIDEvent(), and com.neuronrobotics.sdk.pid.PIDEvent.set().

◆ setValue()

void com.neuronrobotics.sdk.pid.PIDEvent.setValue ( float  ticks)

Sets the value.

Parameters
ticksthe new value

Definition at line 94 of file PIDEvent.java.

References com.neuronrobotics.sdk.pid.PIDEvent.ticks.

Referenced by com.neuronrobotics.sdk.pid.PIDEvent.PIDEvent(), and com.neuronrobotics.sdk.pid.PIDEvent.set().

◆ setVelocity()

void com.neuronrobotics.sdk.pid.PIDEvent.setVelocity ( int  vel)

Sets the velocity.

Parameters
velthe new velocity

Definition at line 138 of file PIDEvent.java.

Referenced by com.neuronrobotics.sdk.pid.PIDEvent.PIDEvent(), and com.neuronrobotics.sdk.pid.PIDEvent.set().

◆ toString()

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

Member Data Documentation

◆ channel

int com.neuronrobotics.sdk.pid.PIDEvent.channel
private

◆ ticks

float com.neuronrobotics.sdk.pid.PIDEvent.ticks
private

◆ timeStamp

long com.neuronrobotics.sdk.pid.PIDEvent.timeStamp
private

◆ velocity

int com.neuronrobotics.sdk.pid.PIDEvent.velocity
private

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