diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-04-04 11:57:29 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-04-04 11:57:29 +0300 |
| commit | 627eb2d350bccad525bca9e7cbbe5a89ff93b46f (patch) | |
| tree | 1d27908e9ff240f48bb362b864549bb6af9064d3 /Software | |
| parent | 30ebe0cb5b35ddbb7ce61b9e845c935e3fd8667a (diff) | |
| download | Tango-627eb2d350bccad525bca9e7cbbe5a89ff93b46f.tar.gz Tango-627eb2d350bccad525bca9e7cbbe5a89ff93b46f.zip | |
using the progress stub to call for power off
Diffstat (limited to 'Software')
| -rw-r--r-- | Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerIdle.c | 4 | ||||
| -rw-r--r-- | Software/Stubs Collection/stubs/Poweroff_progress.cs | 23 |
2 files changed, 25 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerIdle.c b/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerIdle.c index 7d42ad8f5..22b30748f 100644 --- a/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerIdle.c +++ b/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerIdle.c @@ -75,7 +75,7 @@ uint32_t PowerIdleCallBackFunction(uint32_t IfIndex, uint32_t BusyFlag) { Report("PowerIdle Idle activated ",__FILE__,__LINE__,(int)powerIdleSecondsLimit,RpWarning,(int)powerIdleSecondsCounter,0); powerIdleState = true; - SetPowerMachineState(sttIDLE); + //SetPowerMachineState(sttIDLE); //move to idle state PowerIdleSetIdle(); } @@ -103,7 +103,7 @@ void PowerIdleOutOfIdleState(void) if (powerIdleState == true) { powerIdleState = false; - SetPowerMachineState(sttON); + //SetPowerMachineState(sttON); if (HandleProcessParameters(&ActiveProcessParameters)!= OK) { LOG_ERROR (1, "Turn Heaters active failed"); diff --git a/Software/Stubs Collection/stubs/Poweroff_progress.cs b/Software/Stubs Collection/stubs/Poweroff_progress.cs new file mode 100644 index 000000000..a10bc4ed4 --- /dev/null +++ b/Software/Stubs Collection/stubs/Poweroff_progress.cs @@ -0,0 +1,23 @@ +using System; +using System.Text; +using System.Linq; +using System.Drawing; +using System.Diagnostics; +using System.Windows.Forms; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; +using Tango.PMR.Stubs; +using Tango.Stubs; + +public void OnExecute(StubManager stubManager) +{ + + +ProgressRequest progressRequest = new ProgressRequest(); +progressRequest.Amount = 10; +progressRequest.Delay = 10; + + var response = stubManager.Run<ProgressResponse>(progressRequest); + +}
\ No newline at end of file |
