From 29b08a41f29655561ab83d8b454ea5fb6227ad7a Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Mon, 31 Aug 2020 12:02:40 +0300 Subject: Read WHS Shinko Temperature --- Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c') diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c index 55148e655..7e3118c13 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c @@ -65,6 +65,8 @@ #include #include +#include "drivers/Uart_Comm/WHS_Controller_Comm/WHS_UART/WHS_Uart.h" + Task_Handle Millisecond_Task_Handle; /******************** Definitions ********************************************/ @@ -717,6 +719,10 @@ uint32_t MillisecLowLoop(uint32_t tick) if (isMotorConfigured(Motor_i)) MotorGetStatusFromFPGA(Motor_i); } + if (WHS_Type == WHS_TYPE_NEW) + { + WHS_Shinko_Communication(); // Reading every fourth cycle (Set HW, Request, Set HW, Response) + } } if ((O500Millisecond_Tick)&&(RapidPressureRead == false)) { -- cgit v1.3.1