use of com.neuronrobotics.sdk.dyio.peripherals.IServoPositionUpdateListener in project java-bowler by NeuronRobotics.
the class ServoPrismaticLink method setServoChannel.
public void setServoChannel(ServoChannel srv) {
// System.out.println("Setting new servo channel: "+srv.getChannel().getNumber());
srv.getChannel().setCachedMode(true);
srv.addIServoPositionUpdateListener(new IServoPositionUpdateListener() {
@Override
public void onServoPositionUpdate(ServoChannel srv, int position, double time) {
fireLinkListener(position);
}
});
this.srv = srv;
}
use of com.neuronrobotics.sdk.dyio.peripherals.IServoPositionUpdateListener in project java-bowler by NeuronRobotics.
the class ServoRotoryLink method setServoChannel.
public void setServoChannel(ServoChannel srv) {
// System.out.println("Setting new servo channel: "+srv.getChannel().getNumber());
srv.getChannel().setCachedMode(true);
srv.addIServoPositionUpdateListener(new IServoPositionUpdateListener() {
@Override
public void onServoPositionUpdate(ServoChannel srv, int position, double time) {
fireLinkListener(position);
}
});
this.srv = srv;
}
Aggregations