aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/control.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-07-23 18:54:20 +0300
committerShlomo Hecht <shlomo@twine-s.com>2020-07-23 18:54:20 +0300
commitcf49f9b7af8cb4ad0376157d27ef208eca6d1304 (patch)
treeb99059abdc696a31cb56ef227d29e4482e23cf8d /Software/Embedded_SW/Embedded/Modules/Control/control.c
parent93bf6344f8cc37a662c19db81c4f341e5b9ed0f0 (diff)
downloadTango-cf49f9b7af8cb4ad0376157d27ef208eca6d1304.tar.gz
Tango-cf49f9b7af8cb4ad0376157d27ef208eca6d1304.zip
some small changes, mostly in drier loading
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/control.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Control/control.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/control.c b/Software/Embedded_SW/Embedded/Modules/Control/control.c
index 26fba0194..14275533e 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/control.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/control.c
@@ -597,6 +597,9 @@ uint32_t ControlLowLoop(uint32_t tick)
continue;
if (ControlArray[ControlLowDevice_i].ControlTiming == eOneMillisecond)
continue;
+ if (ControlArray[ControlLowDevice_i].StartTick == tick)
+ continue;
+
if (((tick - ControlArray[ControlLowDevice_i].StartTick)%ControlArray[ControlLowDevice_i].ControlTiming)<=skipped_ticks) // run the control on exact intervals
{
ControlBacklog[backlogindex]=ControlLowDevice_i;