diff options
| author | Avi Levkovich <avi@twine-s.com> | 2020-08-31 12:02:40 +0300 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2020-08-31 12:02:40 +0300 |
| commit | 29b08a41f29655561ab83d8b454ea5fb6227ad7a (patch) | |
| tree | 79ca09eea05fbec5ff30f31fed74f52823590f96 /Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c | |
| parent | f35997d7f19ffbc4f4f99dbe32ca83207e570e9c (diff) | |
| download | Tango-29b08a41f29655561ab83d8b454ea5fb6227ad7a.tar.gz Tango-29b08a41f29655561ab83d8b454ea5fb6227ad7a.zip | |
Read WHS Shinko Temperature
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <Drivers/I2C_Communication/WHS_Card/D_MAX11614_ADC/WHS_MAX11614_A2D.h> #include <Drivers/I2C_Communication/I2C_Task.h> +#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)) { |
