BowlerKernel
ConfigAsyncCommand.java
Go to the documentation of this file.
1 package com.neuronrobotics.sdk.commands.bcs.io;
2 
3 import com.neuronrobotics.sdk.common.BowlerAbstractCommand;
4 import com.neuronrobotics.sdk.common.BowlerMethod;
5 
6 // TODO: Auto-generated Javadoc
11 
19  public ConfigAsyncCommand(int channel,int msTime, AsyncMode mode) {
20  if(mode != AsyncMode.AUTOSAMP && mode != AsyncMode.NOTEQUAL)
21  throw new RuntimeException("Missing configuration data for async configuration");
22  setOpCode("asyn");
24  getCallingDataStorage().add(channel);
27  }
28 
36  public ConfigAsyncCommand(int channel,int msTime, int deadbandValue) {
37  setOpCode("asyn");
39  getCallingDataStorage().add(channel);
42  getCallingDataStorage().addAs32(deadbandValue);
43  }
44 
53  public ConfigAsyncCommand(int channel,int msTime, int threshholdValue,AsyncThreshholdEdgeType edge) {
54  setOpCode("asyn");
56  getCallingDataStorage().add(channel);
59  getCallingDataStorage().addAs32(threshholdValue);
61  }
62 }
ConfigAsyncCommand(int channel, int msTime, int deadbandValue)
ConfigAsyncCommand(int channel, int msTime, int threshholdValue, AsyncThreshholdEdgeType edge)
ConfigAsyncCommand(int channel, int msTime, AsyncMode mode)
synchronized boolean add(byte data)
Definition: ByteList.java:149