diff options
| author | Avi Levkovich <avi@twine-s.com> | 2018-05-13 12:08:20 +0300 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2018-05-13 12:08:20 +0300 |
| commit | 82ea027530fa6e2512b30d1e069a602aed73be5f (patch) | |
| tree | 6af1d6a41973f0598f063dd0c122ef139a412994 /Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c | |
| parent | e74f4da5899eea9abea143771fa2a950a50da963 (diff) | |
| parent | c61415008c418af3d628185efa1fa746aaf0516c (diff) | |
| download | Tango-82ea027530fa6e2512b30d1e069a602aed73be5f.tar.gz Tango-82ea027530fa6e2512b30d1e069a602aed73be5f.zip | |
move to one motors id enum + remove AMT_OF_WORDS
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c index 0e68a6406..434ac0f21 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c @@ -216,7 +216,6 @@ uint32_t ThreadControlCBFunction(uint32_t IfIndex, uint32_t ReadValue) avreageSampleValue += MotorSamples[index][i]; avreageSampleValue = avreageSampleValue / MotorsControl[index].pvinputfilterfactormode; NormalizedError = avreageSampleValue*NormalizedErrorCoEfficient[index]; -if (index != 0) return OK; MotorControlConfig[index].m_mesuredParam = NormalizedError; MotorControlConfig[index].m_calculatedError = PIDAlgorithmCalculation((float)MotorControlConfig[index].m_SetParam , (float)MotorControlConfig[index].m_mesuredParam, &MotorControlConfig[index].m_params, &MotorControlConfig[index].m_preError, &MotorControlConfig[index].m_integral); |
