use of com.neuronrobotics.sdk.commands.bcs.pid.GetPIDChannelCountCommand in project java-bowler by NeuronRobotics.
the class LegacyPidNamespaceImp method getPIDChannelCount.
@Override
public int getPIDChannelCount() {
if (getChannelCount() == null) {
BowlerDatagram dg = getDevice().send(new GetPIDChannelCountCommand());
setChannelCount(ByteList.convertToInt(dg.getData().getBytes(0, 4)));
}
return getChannelCount();
}
Aggregations