Пример #1
0
 public void TestSendCommandWithAcknowledgementByArduinoFinished(ReceivedCommand command)
 {
     var result = command.ReadBoolArg();
     if (!result)
     {
         Common.TestNotOk("Incorrect response");
     }
     _acknowledgementByEmbeddedFinished = true;
 }
Пример #2
0
        // Callback function that plots a data point for the current temperature, the goal temperature,
        // the heater steer value and the Pulse Width Modulated (PWM) value.
        private void OnPlotDataPoint(ReceivedCommand arguments)
        {             
            var time        = arguments.ReadFloatArg();
            var currTemp    = arguments.ReadFloatArg();
            var goalTemp    = arguments.ReadFloatArg();
            var heaterValue = arguments.ReadFloatArg();
            var heaterPwm   = arguments.ReadBoolArg();

            _chartForm.UpdateGraph(time, currTemp, goalTemp, heaterValue, heaterPwm);
        }