示例#1
0
 public HardwareComponent(string name, CommunicationTask cTask, CancellationToken ct, int si)
 {
     ComponentName     = name;
     commTask          = cTask;
     cancellationToken = ct;
     Debug.Assert(si > 1, "samplingIntervalMs must be larger than 1");
     samplingIntervalMs = si;
 }
示例#2
0
 public HardwareComponent(string name, CommunicationTask cTask, CancellationToken ct, int si)
 {
     ComponentName = name;
     commTask = cTask;
     cancellationToken = ct;
     Debug.Assert(si > 1, "samplingIntervalMs must be larger than 1");
     samplingIntervalMs = si;
 }
示例#3
0
 public ArduinoBrick(CancellationTokenSource cts)
 {
     // we create the Brick every time we open the COM port
     tokenSource = cts;
     commTask    = new CommunicationTask(this);
 }
示例#4
0
 public ArduinoBrick(CancellationTokenSource cts)
 {
     // we create the Brick every time we open the COM port
     tokenSource = cts;
     commTask = new CommunicationTask(this);
 }