aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-10-25 11:08:06 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-10-25 11:08:06 +0300
commitb2ff9df011e1e710381683f8c50d66e9f34616a2 (patch)
tree5a7500e463bd1ab51088b5ff83845c5ab42197c3 /Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c
parente64ec3bb6dd7294f9765bf4ca032e4aea42509e8 (diff)
downloadTango-b2ff9df011e1e710381683f8c50d66e9f34616a2.tar.gz
Tango-b2ff9df011e1e710381683f8c50d66e9f34616a2.zip
small changes. set speed in winder removed
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c
index effa8b2c7..9e3bdb052 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c
@@ -186,6 +186,7 @@ uint32_t CalculateNumberOfSteps (uint32_t Counter, bool direction)
NumberOfSteps -= (Counter/InternalWinderCfg.spoolbackingrate);
REPORT_MSG(ScrewNumberOfSteps, "Head Backing");
ScrewNumberOfSteps--;
+ /* screw speed adjustment is suspended
screw_horizontal_speed = InternalWinderCfg.segmentoffsetpulses / InternalWinderCfg.NumberOfRotationPerPassage;
// calculation input#2: number of rotations per second - (basically: speed/winder perimeter. later - according to winder actual speed - calculate according to winder position accumulation in the last second.
RotationsPerSecond = dyeingspeed / (InternalWinderCfg.diameter * PI);
@@ -196,6 +197,7 @@ uint32_t CalculateNumberOfSteps (uint32_t Counter, bool direction)
MotorSetMaxSpeed (HARDWARE_MOTOR_TYPE__MOTO_SCREW,ScrewSpeed);
REPORT_MSG(ScrewSpeed, "CalculateNumberOfSteps");
CurrentControlledSpeed[SCREW_MOTOR] = ScrewSpeed;
+ */
}
if ((Counter%InternalWinderCfg.SpoolBottomBackingRate == 0)||(Counter%InternalWinderCfg.SpoolBottomBackingRate == 1))
@@ -263,13 +265,6 @@ uint32_t ScrewDirectionChange(uint32_t deviceID, uint32_t BusyFlag)
MotorMove (HARDWARE_MOTOR_TYPE__MOTO_SCREW,ScrewCurrentDirection,Steps); //process: set point 0, set max speed, move to the specified length, return back.
REPORT_MSG(ScrewCurrentDirection, "ScrewDirectionChange");
}
-/*
- * calculate new ScrewSpeed and call MotorSetMaxSpeed (HARDWARE_MOTOR_TYPE__MOTO_SCREW,ScrewSpeed);
- *
- */
- /*
- * calculate cone shape according to DirectionChangeCounter and update ScrewNumberOfSteps
- */
return OK;
}