private Queue<string> avrResult; // FIFO storing the Strings received from AVR #endregion Fields #region Constructors /// <summary> /// Initializes a new instance of the <see cref="Peltier"/> class. /// Creates all the data structures but nothing else. /// AVR object is NOT INITIALIZED /// </summary> public Peltier() { // AVR NOT INITIALIZED _avr = null; room_temperature = -100; peltier_temperature = -100; pwm_level = 0; // Initialize the Input FIFO avrResult = new Queue<string>(); }
/// <summary> /// Initializes a new instance of the <see cref="Peltier"/> class. /// </summary> /// <param name="com">The AVR Serial Port Name.</param> public Peltier(string com) { room_temperature = -100; peltier_temperature = -100; pwm_level = 0; // Initialize the Input FIFO avrResult = new Queue<string>(); try { // Initialize the AVR object _avr = new AVRDevice(com); } catch (Exception ex) { throw ex; } }