aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread
diff options
context:
space:
mode:
authorRonen Sberlo <ronen.s@twine-s.com>2020-09-24 10:33:06 +0300
committerRonen Sberlo <ronen.s@twine-s.com>2020-09-24 10:33:06 +0300
commitca6d67e7e5a9ca719a5a32466f701b076aac635d (patch)
tree0ea97eb8521795d8d43cf43aa3372f49b38031e9 /Software/Embedded_SW/Embedded/Modules/Thread
parentffb1fbe61830beda902847d7e2a9d1722dd7224c (diff)
downloadTango-ca6d67e7e5a9ca719a5a32466f701b076aac635d.tar.gz
Tango-ca6d67e7e5a9ca719a5a32466f701b076aac635d.zip
add compilation flag for tunnel pt100
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/Thread_ex.h2
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c21
2 files changed, 20 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_ex.h b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_ex.h
index c3f181b52..5d69e2980 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_ex.h
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_ex.h
@@ -88,7 +88,7 @@ uint32_t StartThreadLoadingFunc(MessageContainer* requestContainer);
uint32_t ContinueThreadLoadingFunc(MessageContainer* requestContainer);
uint32_t StopThreadLoadingFunc(MessageContainer* requestContainer);
uint32_t TryThreadLoadingFunc(MessageContainer* requestContainer);
-
+void ThreadCheckArcHeadCovers(void);
uint32_t Thread_Load_End(void);
#endif
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
index d7bfb1b6e..4f77104d4 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
@@ -1142,6 +1142,14 @@ uint32_t ThreadPrepareState(void *JobDetails)
}
}
}
+ if ((Head_Type == HEAD_TYPE_ARC) && (JoggingJobActive == false)) {
+ if (FPGA_Read_limit_Switches(I2C_HEADCARD_COVER_LS_ARC) != LIMIT) {
+ ReportWithPackageFilter(ThreadFilter,"Dyeing head arc is open!!!",__FILE__,__LINE__,0,RpError,LIMIT,0);
+ }
+ if (FPGA_Read_limit_Switches(I2C_HEADCARD_COVER_LS_TUNNEL_ARC) != LIMIT) {
+ ReportWithPackageFilter(ThreadFilter,"Dyeing head arc tunnel is open!!!",__FILE__,__LINE__,0,RpError,LIMIT,0);
+ }
+ }
// if ((FPGA_Read_limit_Switches(Motor_Id_to_LS_IdUp[HARDWARE_MOTOR_TYPE__MOTO_DRYER_LID]) == LIMIT)&&(JoggingJobActive == false))
if ((FPGA_Read_limit_Switches(Motor_Id_to_LS_IdDown[HARDWARE_MOTOR_TYPE__MOTO_DRYER_LID]) != LIMIT)&&(JoggingJobActive == false))
{
@@ -1616,8 +1624,17 @@ char Endstr[150];
return OK;
}
-
-
+void ThreadCheckArcHeadCovers(void)
+{
+ if ((Head_Type == HEAD_TYPE_ARC) && (JoggingJobActive == false)) {
+ if (FPGA_Read_limit_Switches(I2C_HEADCARD_COVER_LS_ARC) != LIMIT) {
+ ReportWithPackageFilter(ThreadFilter,"Dyeing head arc is open!!!",__FILE__,__LINE__,0,RpError,LIMIT,0);
+ }
+ if (FPGA_Read_limit_Switches(I2C_HEADCARD_COVER_LS_TUNNEL_ARC) != LIMIT) {
+ ReportWithPackageFilter(ThreadFilter,"Dyeing head arc tunnel is open!!!",__FILE__,__LINE__,0,RpError,LIMIT,0);
+ }
+ }
+}
//********************************************************************************************************************
void ThreadStartPrinting(void)