aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Emulations
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-12-11 04:45:05 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-12-11 04:45:05 +0200
commita63b5db93859fac695d1b9faea23b79e3a070179 (patch)
treef8ea2bd501d6d2fb14fabac1a2989b04887444c8 /Software/Visual_Studio/Tango.Emulations
parent0bd41535d72cf2e6c50267783bfd098ae5263d6e (diff)
downloadTango-a63b5db93859fac695d1b9faea23b79e3a070179.tar.gz
Tango-a63b5db93859fac695d1b9faea23b79e3a070179.zip
Fixed issues with reset counters.
Display general authorization error instead of unexpected application error. Display environment on FSE. Completed cleaner dispensing dialog. Hide/show "Open/Close dyeing head lid" on Flat/Arc. Emulator will raise proper "Opened" events after "Open dyeing head lid" command. Updated EF Extensions version to all project due to a bug in "DeleteFromQuery".
Diffstat (limited to 'Software/Visual_Studio/Tango.Emulations')
-rw-r--r--Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
index 9cdf6dcae..6360b7bbc 100644
--- a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
+++ b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs
@@ -1009,6 +1009,24 @@ namespace Tango.Emulations.Emulators
Transporter.SendResponse<MotorHomingResponse>(new MotorHomingResponse() { MaxProgress = 100, Progress = 100 }, request.Container.Token, new TransportResponseConfig() { Completed = true });
_motorHomingRequestCodes.Remove(homeRequest.MotorType);
ResetGraphFactors();
+
+ if (request.Message.MotorType == PMR.Hardware.HardwareMotorType.MotoDhLid)
+ {
+ if (request.Message.Direction == MotorDirection.Backward)
+ {
+ var eventState1 = EventsStates.FirstOrDefault(x => x.EventType == PMR.Diagnostics.EventType.DyeingHeadArcLidIsOpen);
+ var eventState2 = EventsStates.FirstOrDefault(x => x.EventType == PMR.Diagnostics.EventType.DyeingHeadCoverIsOpen);
+ eventState1.IsActive = true;
+ eventState2.IsActive = true;
+ }
+ else
+ {
+ var eventState1 = EventsStates.FirstOrDefault(x => x.EventType == PMR.Diagnostics.EventType.DyeingHeadArcLidIsOpen);
+ var eventState2 = EventsStates.FirstOrDefault(x => x.EventType == PMR.Diagnostics.EventType.DyeingHeadCoverIsOpen);
+ eventState1.IsActive = false;
+ eventState2.IsActive = false;
+ }
+ }
});
}