Search in sources :

Example 1 with GetPIDChannelCountCommand

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();
}
Also used : BowlerDatagram(com.neuronrobotics.sdk.common.BowlerDatagram) GetPIDChannelCountCommand(com.neuronrobotics.sdk.commands.bcs.pid.GetPIDChannelCountCommand)

Aggregations

GetPIDChannelCountCommand (com.neuronrobotics.sdk.commands.bcs.pid.GetPIDChannelCountCommand)1 BowlerDatagram (com.neuronrobotics.sdk.common.BowlerDatagram)1