aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-01-15 09:38:23 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-01-15 09:38:23 +0200
commit5615cfe5029be4b6db306bdf76d6abc0e6cb96f8 (patch)
tree1e4ed4788af60f1e6827d0643586196c0021045f /Software/Embedded_SW/Embedded/Modules/Thread
parent6a0ff2744f0f13a2070b53e9eff20ea9379ee350 (diff)
parent4c9319b4aa25287ab8660b1f667a06ff31fb7dc8 (diff)
downloadTango-5615cfe5029be4b6db306bdf76d6abc0e6cb96f8.tar.gz
Tango-5615cfe5029be4b6db306bdf76d6abc0e6cb96f8.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c9
1 files changed, 7 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 26616c141..1c3326336 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
@@ -500,7 +500,7 @@ uint32_t ThreadControlCBFunction(uint32_t IfIndex, uint32_t ReadValue)
{
TranslatedReadValue = 0x3FFF- TranslatedReadValue; //overcome zero environment
}
- if (index == POOLER_MOTOR)
+ if ((index == POOLER_MOTOR)||((index == FEEDER_MOTOR)&&(DancersCfg[DancerId].assemblydirectionright == true)))
{
//pooler dancer is right sided: data is opposite
TranslatedReadValue = (-1*TranslatedReadValue);
@@ -909,8 +909,13 @@ uint32_t ThreadDryerRampUp(uint32_t IfIndex, uint32_t BusyFlag)
InitialDryerSpeed = OriginalMotorSpd_2PPS[DRYER_MOTOR];
SafeRemoveControlCallback(ControlIdtoMotorId[DRYER_MOTOR], ThreadDryerRampUp );
ControlIdtoMotorId[DRYER_MOTOR] = 0xFF;
+ //ReportWithPackageFilter(ThreadFilter,"ThreadDryerRampUp end",__FILE__,ControlIdtoMotorId[DRYER_MOTOR],(int)InitialDryerSpeed,RpWarning,(int)OriginalMotorSpd_2PPS[DRYER_MOTOR],0);
+ }
+ if (InitialDryerSpeed == 0)
+ {
+ //ReportWithPackageFilter(ThreadFilter,"ThreadDryerRampUp Stopped",__FILE__,ControlIdtoMotorId[DRYER_MOTOR],(int)InitialDryerSpeed,RpWarning,(int)OriginalMotorSpd_2PPS[DRYER_MOTOR],0);
+ return OK;
}
-
MotorSetSpeed(ThreadMotorIdToMotorId[DRYER_MOTOR],InitialDryerSpeed );
//ReportWithPackageFilter(ThreadFilter,"ThreadDryerRampUp",__FILE__,ControlIdtoMotorId[DRYER_MOTOR],(int)InitialDryerSpeed,RpWarning,(int)OriginalMotorSpd_2PPS[DRYER_MOTOR],0);