use of com.neuronrobotics.sdk.dyio.peripherals.ICounterOutputListener in project java-bowler by NeuronRobotics.
the class StepperPrismaticLink method setChannel.
public void setChannel(CounterOutputChannel c) {
channel = c;
channel.getChannel().setCachedMode(true);
channel.addCounterOutputListener(new ICounterOutputListener() {
@Override
public void onCounterValueChange(CounterOutputChannel source, int value) {
if (source == channel) {
fireLinkListener(value);
}
}
});
}
use of com.neuronrobotics.sdk.dyio.peripherals.ICounterOutputListener in project java-bowler by NeuronRobotics.
the class StepperRotoryLink method setChannel.
public void setChannel(CounterOutputChannel c) {
channel = c;
channel.getChannel().setCachedMode(true);
channel.addCounterOutputListener(new ICounterOutputListener() {
@Override
public void onCounterValueChange(CounterOutputChannel source, int value) {
if (source == channel) {
fireLinkListener(value);
}
}
});
}
Aggregations