diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-18 13:22:38 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-18 13:22:38 +0300 |
| commit | 28bd12840b74ce42a9c63eb9f909b925d067d80d (patch) | |
| tree | 1b85b039244c8c50fbf5bb5933065a07412cb677 /Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c | |
| parent | 02bc7f8e417b1c24eb35764167ad068452a36e2a (diff) | |
| parent | 27f843a93af1fdda7e79ad4e1579f7f2de3d2e8d (diff) | |
| download | Tango-28bd12840b74ce42a9c63eb9f909b925d067d80d.tar.gz Tango-28bd12840b74ce42a9c63eb9f909b925d067d80d.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c index 6a0bac394..ad3c731cb 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c @@ -196,7 +196,7 @@ uint32_t ThreadLengthCBFunction(uint32_t IfIndex, uint32_t ReadValue) } else { - SendJobProgress(TotalProcessedLength,0,false, "Progress"); + SendJobProgress(TotalProcessedLength,0,false, NULL); } } @@ -352,7 +352,7 @@ uint32_t ThreadControlCBFunction(uint32_t IfIndex, uint32_t ReadValue) for (i=0;i<MotorsControl[index].pvinputfilterfactormode;i++) avreageSampleValue += MotorSamples[index][i]; avreageSampleValue = avreageSampleValue / MotorsControl[index].pvinputfilterfactormode; - //Stop Execution if the dancer moves too much + /* if (index == POOLER_MOTOR) { if (JobCounter > eOneSecond) @@ -365,10 +365,12 @@ uint32_t ThreadControlCBFunction(uint32_t IfIndex, uint32_t ReadValue) } } } + */ + //Stop Execution if the dancer moves too much if ((abs(avreageSampleValue)> DancerStopActivityLimit[index])&&(JobCounter > eOneSecond)) { - usnprintf(Message, 60, "Dancer %d limit %d value %d Zero %d",DancerId,DancerStopActivityLimit[index],avreageSampleValue,DancersCfg[DancerId].zeropoint); - + usnprintf(Message, 60, "Dancer %d limit %d value %d Zero %d",DancerId,DancerStopActivityLimit[index],avreageSampleValue,DancersCfg[DancerId].zeropoint); + JobAbortedByUser = true; EndState(CurrentJob,Message ); } NormalizedError = avreageSampleValue*NormalizedErrorCoEfficient[index]; |
