aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Emulations/Emulators
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2023-06-27 13:16:21 +0300
committerRoy <Roy.mail.net@gmail.com>2023-06-27 13:16:21 +0300
commitc267a46b14ebb3babe8a0378bd403346ca182354 (patch)
treea7d69a29c00c9b2976168bf42d7ad228e1f91680 /Software/Visual_Studio/Tango.Emulations/Emulators
parent0f150c98978332377ee6aad3eac8c8a08553a8e7 (diff)
parenta5de87ea9863c6e7053e09ed1c2eabf58285af48 (diff)
downloadTango-c267a46b14ebb3babe8a0378bd403346ca182354.tar.gz
Tango-c267a46b14ebb3babe8a0378bd403346ca182354.zip
Merge branch 'eureka' of https://twinetfs.visualstudio.com/Tango/_git/Tango into eureka
Diffstat (limited to 'Software/Visual_Studio/Tango.Emulations/Emulators')
-rw-r--r--Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs37
1 files changed, 36 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
index f873dbece..a081efb25 100644
--- a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
+++ b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
@@ -170,8 +170,22 @@ namespace Tango.Emulations.Emulators
MidTankLevel = 2.5,
});
}
+ for (int i = 0; i < 4; i++)
+ {
+ if( i == 2)
+ {
+ MachineStatus.WindersInError.Add(false);
+ MachineStatus.DancersInError.Add(true);
+ MachineStatus.BtsrsInError.Add(true);
+ }
+ else {
+ MachineStatus.WindersInError.Add(false);
+ MachineStatus.DancersInError.Add(false);
+ MachineStatus.BtsrsInError.Add(false);
+ }
+ }
- EventsStates = MachineEventState.GetAllEventsStates();
+ EventsStates = MachineEventState.GetAllEventsStates();
_valveStates = new List<ValveState>();
_blower_states = new List<SetBlowerStateRequest>();
@@ -213,6 +227,21 @@ namespace Tango.Emulations.Emulators
HeaterType = (HeaterType)item.Code,
});
}
+ var tunnel = _heater_states.FirstOrDefault(x => x.HeaterType == HeaterType.ETunnelHeater);
+ if(tunnel != null)
+ {
+ tunnel.IsRampingUp = true;
+ tunnel.CurrentValue = 108.5;
+ tunnel.SetPoint = 170;
+ }
+ var dryerZone3 = _heater_states.FirstOrDefault(x => x.HeaterType == HeaterType.EDryerHeater3);
+ if (dryerZone3 != null)
+ {
+ dryerZone3.IsRampingUp = false;
+ dryerZone3.CurrentValue = 200.8;
+ dryerZone3.SetPoint = 170;
+ }
+ //DryerZone3
foreach (var item in adapter.HardwareBlowerTypes)
{
@@ -621,6 +650,12 @@ namespace Tango.Emulations.Emulators
monitors.Dispenser7MotorFrequency.AddRange(dispenserFrequencies[6].Data);
monitors.Dispenser8MotorFrequency.AddRange(dispenserFrequencies[7].Data);
+ monitors.EuDispenser1Pressure.Clear();
+ monitors.EuDispenser1Pressure.Add(5);
+
+ monitors.EuLubricantCurrent.Add(4000.12345);
+
+
//res.HeatersStates.Add(new HeaterState()
//{
// CurrentValue = 50,