aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-01-14 18:52:44 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-01-14 18:52:44 +0200
commit4c9319b4aa25287ab8660b1f667a06ff31fb7dc8 (patch)
treef3cbc603d2551357715798047223a285dd4a3c7e /Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
parent2b1c55a4e7ba10ecd57f4b4761397a0204dd5b81 (diff)
downloadTango-4c9319b4aa25287ab8660b1f667a06ff31fb7dc8.tar.gz
Tango-4c9319b4aa25287ab8660b1f667a06ff31fb7dc8.zip
Version 1.4.6.4: fix diagnostics, alarm handling data loading, fix heaters - new head is working. new TPF files for new head
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c')
-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);