aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2025-01-19 19:47:50 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2025-01-19 19:47:50 +0200
commit97904f88f3949339c713286b592ad156baa8d41f (patch)
tree28437b18fba7572ba0b390c668c48c28594d2c97 /Software/Visual_Studio/Tango.Integration
parentdc01eecbfd2f47f739e4ffd8a2a56f3047c66322 (diff)
downloadTango-97904f88f3949339c713286b592ad156baa8d41f.tar.gz
Tango-97904f88f3949339c713286b592ad156baa8d41f.zip
Buzzer.
White Skip. Thread Loading Abort.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration')
-rw-r--r--Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs10
-rw-r--r--Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs30
2 files changed, 40 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs
index 74ae6e5cb..c99e83558 100644
--- a/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs
+++ b/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs
@@ -628,5 +628,15 @@ namespace Tango.Integration.Operation
/// <param name="insertedLiters">The inserted liters.</param>
/// <returns></returns>
Task SetJerricanInsertedLiters(int idsPackIndex, double insertedLiters);
+
+ /// <summary>
+ /// Sets the machine buzzer settings.
+ /// </summary>
+ Task SetBuzzerSettings(bool enable, int duration);
+
+ /// <summary>
+ /// Sets the machine white thread skip settings.
+ /// </summary>
+ Task SetWhiteThreadSkip(bool enable);
}
}
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
index 2dbb4cdde..5a10f643a 100644
--- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
+++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
@@ -4765,6 +4765,36 @@ namespace Tango.Integration.Operation
}
}
+ /// <summary>
+ /// Sets the machine buzzer settings.
+ /// </summary>
+ public async Task SetBuzzerSettings(bool enable, int duration)
+ {
+ if (duration < 10) duration = 10;
+ try
+ {
+ await SendRequest<SetBuzzerSettingsRequest, SetBuzzerSettingsResponse>(new SetBuzzerSettingsRequest() { Enabled = enable, Duration = duration });
+ LogManager.Log($"Machine buzzer set to {(enable ? "Active" : "Inactive")}, Duration: {duration}.");
+ }
+ catch (Exception ex)
+ {
+ LogManager.Log(ex, "Error setting machine buzzer settings.");
+ }
+ }
+
+ public async Task SetWhiteThreadSkip(bool enable)
+ {
+ try
+ {
+ await SendRequest<SetWhiteThreadSkipRequest, SetWhiteThreadSkipResponse>(new SetWhiteThreadSkipRequest() { Enabled = enable});
+ LogManager.Log($"Machine white thread skip is now {(enable ? "Enabled" : "Disabled")}.");
+ }
+ catch (Exception ex)
+ {
+ LogManager.Log(ex, "Error setting machine white thread skip settings.");
+ }
+ }
+
#endregion
}
}