From 635028c74afebb2bedc30881065c1671c2510c67 Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Thu, 6 Sep 2018 12:30:19 +0300 Subject: Update the Read_Fans_Tacho function to read 4 x small Fans (Rotation indication)+ 1 x Big Fan (Tacho) --- Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Modules/Control') diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c index 67b93f05e..122afaea8 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c @@ -73,6 +73,7 @@ typedef struct MillisecMessage{ //bool MotorBusy_Data[NUM_OF_MOTORS] = {true}; uint32_t Dancer_Data[NUM_OF_DANCERS] = {0}; float Speed_Data = 0; +uint32_t DrawerFansStatus = 0; bool watchdogCriticalAlarm = false; @@ -402,6 +403,7 @@ uint32_t MillisecLoop(uint32_t tick) { Control_WD(ENABLE,50); //activate heaters/dispenser watchdog, 5 seconds } + DrawerFansStatus = Read_Fans_Tacho(); } //ROM_IntMasterEnable(); @@ -464,5 +466,7 @@ float getSensorSpeedData(void) return Speed_Data; } - - +float getDrawerFansStatus(void) +{ + return DrawerFansStatus; +} -- cgit v1.3.1