BowlerKernel
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel Class Reference
Inheritance diagram for com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel:
Collaboration graph
[legend]

Classes

class  MapData
 
class  Tester
 

Public Member Functions

 ServoOutputScheduleChannel (ServoChannel srv)
 
int getChannelNumber ()
 
void pauseRecording ()
 
void resumeRecording ()
 
void addAnalogInputListener (IAnalogInputListener l)
 
void startRecording ()
 
void onTimeUpdate (double ms)
 
void setIntervalTime (int msInterval, int totalTime)
 
void onAnalogValueChange (AnalogInputChannel chan, double value)
 
void setOutput (ServoChannel output)
 
ServoChannel getOutput ()
 
void setInputCenter (int inputCenter)
 
int getInputCenter ()
 
void setInputScale (double inputScale)
 
double getInputScale ()
 
void setOutputMinMax (int outputMin, int outputMax)
 
int getOutputMax ()
 
int getOutputMin ()
 
boolean isRecording ()
 
void addIServoPositionUpdateListener (IServoPositionUpdateListener l)
 
void removeIServoPositionUpdateListener (IServoPositionUpdateListener l)
 
String getXml ()
 
int getInputChannelNumber ()
 
void setData (int[] data2)
 
void startTest ()
 
void stopTest ()
 
boolean isTesting ()
 
void setInterval (double interval)
 
double getInterval ()
 
void setCurrentTargetValue (int inputValue)
 
int getCurrentTargetValue ()
 
void flush ()
 
void setAnalogInputChannelNumber (int analogInputChannelNumber)
 
int getAnalogInputChannelNumber ()
 
void setRecording (boolean recording)
 
void onReset ()
 
void onPlay ()
 
void onPause ()
 
int getCurrentValue ()
 
void setCurrentValue (int currentValue)
 
void sync (int loopTime)
 

Private Member Functions

void initInput ()
 

Private Attributes

ServoChannel output
 
double inputScale =.25
 
int inputCenter = 128
 
int inputValue
 
boolean recording =false
 
double interval
 
int currentValue
 
ArrayList< MapDatadata = new ArrayList<MapData>()
 
int outputMax =255
 
int outputMin =0
 
int index =0
 
Tester directTester
 
int analogInputChannelNumber =8
 

Detailed Description

The Class ServoOutputScheduleChannel.

Definition at line 14 of file ServoOutputScheduleChannel.java.

Constructor & Destructor Documentation

◆ ServoOutputScheduleChannel()

com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.ServoOutputScheduleChannel ( ServoChannel  srv)

Member Function Documentation

◆ addAnalogInputListener()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.addAnalogInputListener ( IAnalogInputListener  l)

◆ addIServoPositionUpdateListener()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.addIServoPositionUpdateListener ( IServoPositionUpdateListener  l)

Adds the i servo position update listener.

Parameters
lthe l

Definition at line 320 of file ServoOutputScheduleChannel.java.

References com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.addIServoPositionUpdateListener(), and com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getOutput().

Here is the call graph for this function:

◆ flush()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.flush ( )

◆ getAnalogInputChannelNumber()

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getAnalogInputChannelNumber ( )

◆ getChannelNumber()

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getChannelNumber ( )

◆ getCurrentTargetValue()

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getCurrentTargetValue ( )

◆ getCurrentValue()

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getCurrentValue ( )

◆ getInputCenter()

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getInputCenter ( )

◆ getInputChannelNumber()

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getInputChannelNumber ( )

◆ getInputScale()

double com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getInputScale ( )

◆ getInterval()

double com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getInterval ( )

◆ getOutput()

ServoChannel com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getOutput ( )

◆ getOutputMax()

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getOutputMax ( )

◆ getOutputMin()

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getOutputMin ( )

◆ getXml()

String com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getXml ( )

◆ initInput()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.initInput ( )
private

◆ isRecording()

boolean com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.isRecording ( )

◆ isTesting()

boolean com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.isTesting ( )

Checks if is testing.

Returns
true, if is testing

Definition at line 409 of file ServoOutputScheduleChannel.java.

References com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.directTester.

◆ onAnalogValueChange()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.onAnalogValueChange ( AnalogInputChannel  chan,
double  value 
)

◆ onPause()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.onPause ( )

◆ onPlay()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.onPlay ( )

◆ onReset()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.onReset ( )

This function is called when the seceduler is stopped.

Implements com.neuronrobotics.sdk.dyio.sequencer.ISchedulerListener.

Definition at line 522 of file ServoOutputScheduleChannel.java.

◆ onTimeUpdate()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.onTimeUpdate ( double  ms)

◆ pauseRecording()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.pauseRecording ( )

◆ removeIServoPositionUpdateListener()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.removeIServoPositionUpdateListener ( IServoPositionUpdateListener  l)

Removes the i servo position update listener.

Parameters
lthe l

Definition at line 329 of file ServoOutputScheduleChannel.java.

References com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.getOutput(), and com.neuronrobotics.sdk.dyio.peripherals.ServoChannel.removeIServoPositionUpdateListener().

Here is the call graph for this function:

◆ resumeRecording()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.resumeRecording ( )

◆ setAnalogInputChannelNumber()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setAnalogInputChannelNumber ( int  analogInputChannelNumber)

Sets the analog input channel number.

Parameters
analogInputChannelNumberthe new analog input channel number

Definition at line 465 of file ServoOutputScheduleChannel.java.

References com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.analogInputChannelNumber.

Referenced by com.neuronrobotics.sdk.dyio.sequencer.CoreScheduler.loadFromFile().

◆ setCurrentTargetValue()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setCurrentTargetValue ( int  inputValue)

◆ setCurrentValue()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setCurrentValue ( int  currentValue)

◆ setData()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setData ( int[]  data2)

◆ setInputCenter()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setInputCenter ( int  inputCenter)

Sets the input center.

Parameters
inputCenterthe new input center

Definition at line 228 of file ServoOutputScheduleChannel.java.

References com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.inputCenter.

Referenced by com.neuronrobotics.sdk.dyio.sequencer.CoreScheduler.loadFromFile().

◆ setInputScale()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setInputScale ( double  inputScale)

Sets the input scale.

Parameters
inputScalethe new input scale

Definition at line 246 of file ServoOutputScheduleChannel.java.

References com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.inputScale.

Referenced by com.neuronrobotics.sdk.dyio.sequencer.CoreScheduler.loadFromFile().

◆ setInterval()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setInterval ( double  interval)

◆ setIntervalTime()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setIntervalTime ( int  msInterval,
int  totalTime 
)

◆ setOutput()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setOutput ( ServoChannel  output)

Sets the output.

Parameters
outputthe new output

Definition at line 210 of file ServoOutputScheduleChannel.java.

References com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.output.

◆ setOutputMinMax()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setOutputMinMax ( int  outputMin,
int  outputMax 
)

◆ setRecording()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.setRecording ( boolean  recording)

◆ startRecording()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.startRecording ( )

◆ startTest()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.startTest ( )

◆ stopTest()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.stopTest ( )

◆ sync()

void com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.sync ( int  loopTime)

Member Data Documentation

◆ analogInputChannelNumber

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.analogInputChannelNumber =8
private

◆ currentValue

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.currentValue
private

◆ data

ArrayList<MapData> com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.data = new ArrayList<MapData>()
private

◆ directTester

Tester com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.directTester
private

◆ index

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.index =0
private

◆ inputCenter

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.inputCenter = 128
private

◆ inputScale

double com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.inputScale =.25
private

◆ inputValue

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.inputValue
private

◆ interval

double com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.interval
private

◆ output

ServoChannel com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.output
private

◆ outputMax

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.outputMax =255
private

◆ outputMin

int com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.outputMin =0
private

◆ recording

boolean com.neuronrobotics.sdk.dyio.sequencer.ServoOutputScheduleChannel.recording =false
private

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