Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 3
0
 public ArduinoBrick(CancellationTokenSource cts)
 {
     // we create the Brick every time we open the COM port
     tokenSource = cts;
     commTask    = new CommunicationTask(this);
 }
Esempio n. 4
0
 public ArduinoBrick(CancellationTokenSource cts)
 {
     // we create the Brick every time we open the COM port
     tokenSource = cts;
     commTask = new CommunicationTask(this);
 }