aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-02-18 09:55:10 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-02-18 09:55:10 +0200
commitd9a486056fabf2389f4f82df56958ccb3cf1fcde (patch)
tree3425160e0eb5ca6b19ea834eda6f53e3adf23a30 /Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c
parent5227c6345dd2d66a37dbd44a9bb8eecce7673e44 (diff)
parent493a38117c886c9c9599b67c5297025e54917cfe (diff)
downloadTango-d9a486056fabf2389f4f82df56958ccb3cf1fcde.tar.gz
Tango-d9a486056fabf2389f4f82df56958ccb3cf1fcde.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c
index ec705c2d2..fb3b78752 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_init.c
@@ -73,15 +73,14 @@ uint32_t MotorsConfigMessage(HardwareConfiguration * HWrequest)
MotorsCfg[Motor_i].pulseperround = request->pulseperround;
MotorsCfg[Motor_i].pulleyradius = request->pulleyradius;
MotorsCfg[Motor_i].configword = request->configword;
- MotorsCfg[Motor_i].directionthreadwize = request->directionthreadwize;//L6470 + L6472
-/* if(MotorDriverResponse[Motor_i].DriverType != CombinrdMotDriver)
+ if(MotorDriverResponse[Motor_i].DriverType == CombinrdMotDriver)
{
MotorsCfg[Motor_i].directionthreadwize = request->directionthreadwize ^ 1;//PowerSTEP01
}
else
{
MotorsCfg[Motor_i].directionthreadwize = request->directionthreadwize;//L6470 + L6472
- }*/
+ }
MotorsCfg[Motor_i].kvalhold = request->kvalhold;
MotorsCfg[Motor_i].kvalrun = request->kvalrun;
MotorsCfg[Motor_i].kvalacc = request->kvalacc;