aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs')
-rw-r--r--Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs26
1 files changed, 25 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
index 85bea26bb..063aa740d 100644
--- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
+++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
@@ -4711,7 +4711,7 @@ namespace Tango.Integration.Operation
{
try
{
- LogManager.Log($"Settings machine power saving mode to {timeToIdleMinutes},{timeToPowerDownMinutes} minutes...");
+ LogManager.Log($"Setting machine power saving mode to {timeToIdleMinutes},{timeToPowerDownMinutes} minutes...");
var r = await SendRequest<SetPowerDownTimeRequest, SetPowerDownTimeResponse>(new SetPowerDownTimeRequest()
{
TimeToIdleMinutes = timeToIdleMinutes,
@@ -4725,6 +4725,30 @@ namespace Tango.Integration.Operation
}
}
+ /// <summary>
+ /// Sets the jerrican inserted liters.
+ /// </summary>
+ /// <param name="idsPackIndex">IDS pack index.</param>
+ /// <param name="insertedLiters">The inserted liters.</param>
+ /// <returns></returns>
+ public async Task SetJerricanInsertedLiters(int idsPackIndex, double insertedLiters)
+ {
+ try
+ {
+ LogManager.Log($"Setting jerrican level at index {idsPackIndex} to {insertedLiters} L.");
+ var r = await SendRequest<SetJerricanLevelRequest, SetJerricanLevelResponse>(new SetJerricanLevelRequest()
+ {
+ Index = idsPackIndex,
+ InsertedLiters = insertedLiters
+ });
+ }
+ catch (Exception ex)
+ {
+ LogManager.Log(ex, $"Error setting jerrican level.");
+ throw ex;
+ }
+ }
+
#endregion
}
}