aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-04-21 15:58:33 +0300
committerShlomo Hecht <shlomo@twine-s.com>2020-04-21 15:58:33 +0300
commitbd2e83f3d46414d756f59c2f70cc561718a3022e (patch)
treea9b3973ca59f5f96569b8878ec9d8ed0ecbb563b /Software/Embedded_SW/Embedded/Modules/Thread
parent5677c3d08e15bef1d6629de42b6c2749f4efcef0 (diff)
downloadTango-bd2e83f3d46414d756f59c2f70cc561718a3022e.tar.gz
Tango-bd2e83f3d46414d756f59c2f70cc561718a3022e.zip
version 1.4.6.21 before protobuf reduction - pre test. fix small bud in feeder length, big bug in gradients (control task stack size
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
index a6a8314ab..3187e2568 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
@@ -184,9 +184,9 @@ uint32_t ThreadLengthCBFunction(uint32_t IfIndex, uint32_t ReadValue)
}
prevprev = PreviousPosition;
if (Extended_Motor_Param[ThreadMotorIdToMotorId[index]] == true) //powerstep driver reverses the direction
- positionDiff = Control_Delta_Position_Pass(PoolerPreviousPosition,PoolerCurrentPosition);
+ positionDiff = Control_Delta_Position_Pass(PreviousPosition,CurrentPosition);
else
- positionDiff = Control_Delta_Position_Pass(PoolerCurrentPosition,PoolerPreviousPosition);
+ positionDiff = Control_Delta_Position_Pass(CurrentPosition,PreviousPosition);
//positionDiff = positionDiff / MotorsCfg[ThreadMotorIdToMotorId[index]].microstep;
PreviousPosition = CurrentPosition;