diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-06-20 11:46:02 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-06-20 11:46:02 +0300 |
| commit | 0460a54eb73a3943a9d363e7cce38b8d9009bc4b (patch) | |
| tree | 6e0423ffa358d6a562764f99d110df1623f47a1a /Software/Visual_Studio/Tango.Integration | |
| parent | 7b0ed51c91baf1257fce45699221a0f1a096ce72 (diff) | |
| download | Tango-0460a54eb73a3943a9d363e7cce38b8d9009bc4b.tar.gz Tango-0460a54eb73a3943a9d363e7cce38b8d9009bc4b.zip | |
Jerrycan change impl.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs | 8 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 26 |
2 files changed, 33 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs index a3c0cc389..74ae6e5cb 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/IMachineOperator.cs @@ -620,5 +620,13 @@ namespace Tango.Integration.Operation /// <param name="timeToPowerDownMinutes">The time to power down in minutes.</param> /// <returns></returns> Task SetPowerSavingMode(int timeToIdleMinutes,int timeToPowerDownMinutes); + + /// <summary> + /// Sets the jerrican inserted liters. + /// </summary> + /// <param name="idsPackIndex">IDS pack index.</param> + /// <param name="insertedLiters">The inserted liters.</param> + /// <returns></returns> + Task SetJerricanInsertedLiters(int idsPackIndex, double insertedLiters); } } 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 } } |
