aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-08-02 08:26:40 +0300
committerShlomo Hecht <shlomo@twine-s.com>2020-08-02 08:26:40 +0300
commitd113295a432e33e6b7ccbcc948342d7f570d461c (patch)
tree86620e9c44c80a162052636da65a7f105d182daf /Software/Stubs Collection/stubs
parentbf989bcfa848e20f8bd27aa71acc2fbdee38f57b (diff)
downloadTango-d113295a432e33e6b7ccbcc948342d7f570d461c.tar.gz
Tango-d113295a432e33e6b7ccbcc948342d7f570d461c.zip
Version 1.4.6.36 and procedures
Diffstat (limited to 'Software/Stubs Collection/stubs')
-rw-r--r--Software/Stubs Collection/stubs/Set CleaningSequence.cs23
-rw-r--r--Software/Stubs Collection/stubs/WHS_EEPROM.cs31
-rw-r--r--Software/Stubs Collection/stubs/embeddedparametersbuild_w_cleaning.cs2
3 files changed, 55 insertions, 1 deletions
diff --git a/Software/Stubs Collection/stubs/Set CleaningSequence.cs b/Software/Stubs Collection/stubs/Set CleaningSequence.cs
new file mode 100644
index 000000000..a73134e7b
--- /dev/null
+++ b/Software/Stubs Collection/stubs/Set CleaningSequence.cs
@@ -0,0 +1,23 @@
+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.Stubs;
+using Tango.Stubs;
+
+public void OnExecute(StubManager stubManager)
+{
+
+
+ProgressRequest progressRequest = new ProgressRequest();
+progressRequest.Amount = 0xAD7;
+progressRequest.Delay = 0; //disable
+
+var response = stubManager.Run<ProgressResponse>(progressRequest);
+
+} \ No newline at end of file
diff --git a/Software/Stubs Collection/stubs/WHS_EEPROM.cs b/Software/Stubs Collection/stubs/WHS_EEPROM.cs
new file mode 100644
index 000000000..b5c7af2b1
--- /dev/null
+++ b/Software/Stubs Collection/stubs/WHS_EEPROM.cs
@@ -0,0 +1,31 @@
+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.Stubs;
+using Tango.Stubs;
+
+public void OnExecute(StubManager stubManager)
+{
+
+
+StubWhsEEpromRequest stubWhsEEpromRequest = new StubWhsEEpromRequest();
+stubWhsEEpromRequest.BurnRequest = false; // false - read, true - write
+
+StubWhsEEpromData stubWhsEEpromData = new StubWhsEEpromData();
+stubWhsEEpromData.Header = 1;
+stubWhsEEpromData.TableLength = 2;
+stubWhsEEpromData.Tableversion = 3;
+stubWhsEEpromData.Orifice1Flow = 1067 * 8.7433; //mv * 8.7433 convert from mv to ml (1067 * 8.7433 = 9,329.1011)
+stubWhsEEpromData.CheckSum = 5;
+
+stubWhsEEpromRequest.WhsEEprom = stubWhsEEpromData;
+
+var response = stubManager.Run<StubWhsEEpromResponse>(stubWhsEEpromRequest);
+
+} \ No newline at end of file
diff --git a/Software/Stubs Collection/stubs/embeddedparametersbuild_w_cleaning.cs b/Software/Stubs Collection/stubs/embeddedparametersbuild_w_cleaning.cs
index eaf15b1f6..3b3768310 100644
--- a/Software/Stubs Collection/stubs/embeddedparametersbuild_w_cleaning.cs
+++ b/Software/Stubs Collection/stubs/embeddedparametersbuild_w_cleaning.cs
@@ -76,7 +76,7 @@ configurationParameters.IDSCleaningSpeed = 800;
configurationParameters.IDSCleaningStopBeforeSegmentTime = 10000; //end of presegemnt
configurationParameters.IDSCleaningStartSprayPreSegmentTime =2000; //beginning of presegment
-int Tup = 6,Tdelay1 = 26,Tdelay2 = 65;//300 milli up, stay 1 sec, stay down 2 sec
+int Tup = 8,Tdelay1 = 98,Tdelay2 = 198; //350nsec up, 1 second delay, 2 seconds before up again
// Tup = LeftRockerSpeed/100;
// Tdelay1 = LeftRockerSpeed%100;
// Tdelay2 = RightRockerSpeed;