예제 #1
0
 /// <summary>
 /// Constructs a DevicesManager instance.
 /// </summary>
 public DevicesManager()
 {
     hokuyo  = new Hokuyo(hokuyoComPort, hokuyoBaudRate);
     roboteQ = new Roboteq(roboteQComPort, roboteQBaudRate);
     arduino = new Arduino(arduinoComPort, arduinoBaudRate);
 }
 /// <summary>
 /// Constructs a EncoderDataReceiver instance.
 /// </summary>
 /// <param name="roboteQ">Singleton istance of RoboteQ supporter.</param>
 public EncoderDataReceiver(Roboteq roboteQ)
 {
     this.roboteQ = roboteQ;
 }
 /// <summary>
 /// Constructs a BatteryDataReceiver instance.
 /// </summary>
 /// <param name="roboteQ">Singleton istance of RoboteQ supporter.</param>
 public BatteryDataReceiver(Roboteq roboteQ)
 {
     this.roboteQ = roboteQ;
 }
 public void TestInitialize()
 {
     roboteQ = new Roboteq(roboteQComPort, roboteQBaudRate);
     roboteQ.Connect();
 }
 /// <summary>
 /// Constructs a TemperatureDataReceiver instance.
 /// </summary>
 /// /// <param name="roboteQ">Singleton istance of RoboteQ supporter.</param>
 public TemperatureDataReceiver(Roboteq roboteQ)
 {
     this.roboteQ = roboteQ;
 }
예제 #6
0
 /// <summary>
 /// Constructs a DevicesManager instance.
 /// </summary>
 public DevicesManager()
 {
     hokuyo = new Hokuyo(hokuyoComPort, hokuyoBaudRate);
     roboteQ = new Roboteq(roboteQComPort, roboteQBaudRate);
     arduino = new Arduino(arduinoComPort, arduinoBaudRate);
 }
 /// <summary>
 /// Constructs a EncoderDataProvider instance.
 /// </summary>
 /// <param name="driversData">Data object with information about left and right wheel power. It must be in the Dictionary wiht keys: "leftWheelPower" and "rightWheelPower".</param>
 /// <param name="roboteQ">Singleton istance of RoboteQ supporter.</param>
 public EncoderDataProvider(Data driversData, Roboteq roboteQ)
 {
     this.driversData = driversData;
     this.roboteQ = roboteQ;
 }