Search in sources :

Example 1 with ResetPIDCommand

use of com.neuronrobotics.sdk.commands.bcs.pid.ResetPIDCommand in project java-bowler by NeuronRobotics.

the class LegacyPidNamespaceImp method ResetPIDChannel.

/* (non-Javadoc)
	 * @see com.neuronrobotics.sdk.namespace.bcs.pid.IPidControlNamespace#ResetPIDChannel
	 */
@Override
public boolean ResetPIDChannel(int group, int valueToSetCurrentTo) {
    BowlerDatagram rst = getDevice().send(new ResetPIDCommand((char) group, valueToSetCurrentTo));
    if (rst == null)
        return false;
    int val = GetPIDPosition(group);
    firePIDResetEvent(group, val);
    return true;
}
Also used : BowlerDatagram(com.neuronrobotics.sdk.common.BowlerDatagram) ResetPIDCommand(com.neuronrobotics.sdk.commands.bcs.pid.ResetPIDCommand)

Aggregations

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