blob: 93065c50d513af665d62d3eae8fce11d25056adb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System.Text;
using System.Linq;
using System.Drawing;
using System.Diagnostics;
using System.Windows.Forms;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Tango.PMR.Debugging;
using Tango.PMR.Stubs;
using Tango.PMR.Hardware;
using Tango.Stubs.UI;
public void OnExecute(StubManager stubManager)
{
/* for (int i = 0; i < 10; i++)
{
var response = stubManager.Run<CalculateResponse>("calculate", 10, 5);
if (response.Sum == 15)
{
stubManager.WriteLine("OK!");
}
}
*/
// Request ----
// Double : DryerZone1Temp
// Double : DryerZone2Temp
// RepeatedField`1 : HardwarePidControl
// RepeatedField`1 : ProcessParameters
// Response ----
// UInt32 : HeaterGroupId
// UInt32 : Zone1Temp
// UInt32 : Zone2Temp
// Boolean : Heater1Active
// Boolean : Heater2Active
// UInt32 : Heater1Percentage
// UInt32 : Heater2Percentage
HardwarePidControl Pid1 = new HardwarePidControl();
HardwarePidControl
|