aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-04-18 14:02:50 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-04-18 14:02:50 +0300
commit09d570f8232e81c1a382eb8ba787ecfa78e572f7 (patch)
tree68b4ee979beba8ba3c76c6ed742e1d1953f5651c /Software/Embedded_SW/Embedded/Modules/Thread
parent30dbc28131a53925dd8cb17f3ca3e84922f0cb3d (diff)
parente54e02e3880e7766074325d13391527f811521e3 (diff)
downloadTango-09d570f8232e81c1a382eb8ba787ecfa78e572f7.tar.gz
Tango-09d570f8232e81c1a382eb8ba787ecfa78e572f7.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
index 1eb49ef6d..07fecf313 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
@@ -219,6 +219,7 @@ uint32_t ThreadPreSegmentState(void *JobDetails)
double motor_speed = (process_speed * MotorsCfg[HW_Motor_Id].pulseperround * MotorsCfg[HW_Motor_Id].microstep)/(2*PI* MotorsCfg[HW_Motor_Id].pulleyradius);
OriginalMotorSpd_2PPS[Motor_i] = (int)motor_speed;
+ MotorControlConfig[Motor_i].m_SetParam = motor_speed;
}
// set the new speed in the dryer motor to the speed of the new segment