aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs/update thread PID during run.cs
blob: b312440e54e2b60f5727789d5ff5edaf0262af96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
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.Hardware;
using Tango.PMR.Stubs;
using Tango.Stubs;

public void OnExecute(StubManager stubManager)
{

StubHeatingTestRequest stubHeatingTestRequest = new StubHeatingTestRequest();
/*FEEDER*/
HardwarePidControl hardwarePidControl = new HardwarePidControl();
hardwarePidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorFeeder;
//hardwarePidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorPooler;
//hardwarePidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorWinder;
hardwarePidControl.IntegralTime = 0;
hardwarePidControl.DerivativeTime = 0;
hardwarePidControl.ProportionalGain = 0;
hardwarePidControl.Epsilon = 0;
// hardwarePidControl.ControlOutputType = 0;  //Dt - can change to 20/25
stubHeatingTestRequest.HardwarePidControl1 = hardwarePidControl;
var response = stubManager.Run<StubHeatingTestResponse>(stubHeatingTestRequest);

/*Puller*/
/*
//hardwarePidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorFeeder;
hardwarePidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorPooler;
//hardwarePidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorWinder;
hardwarePidControl.IntegralTime = 0;
hardwarePidControl.DerivativeTime = 0;
hardwarePidControl.ProportionalGain = 0;
hardwarePidControl.Epsilon = 0;
// hardwarePidControl.ControlOutputType = 0;  //Dt - can change to 20/25
stubHeatingTestRequest.HardwarePidControl1 = hardwarePidControl;
response = stubManager.Run<StubHeatingTestResponse>(stubHeatingTestRequest);
*/
/*WINDER*/
/*
//hardwarePidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorFeeder;
//hardwarePidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorPooler;
hardwarePidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorWinder;
hardwarePidControl.IntegralTime = 0;
hardwarePidControl.DerivativeTime = 0;
hardwarePidControl.ProportionalGain = 0;
hardwarePidControl.Epsilon = 0;
// hardwarePidControl.ControlOutputType = 0;  //Dt - can change to 20/25
stubHeatingTestRequest.HardwarePidControl1 = hardwarePidControl;
response = stubManager.Run<StubHeatingTestResponse>(stubHeatingTestRequest);
*/
}