aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2020-07-27 15:39:26 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2020-07-27 15:39:26 +0300
commit5e59906df60d82248da4ae47677ed59d56fb605a (patch)
tree8585548197bfada234b7ded17028aba9563c32de /Software/Embedded_SW/Embedded/Modules/Control
parent3210901f7aa313cfe1eb2c303b539d6e7d1f2324 (diff)
parentc947fa4b4999b1368ee500c3349ef6e8fce3f0b5 (diff)
downloadTango-5e59906df60d82248da4ae47677ed59d56fb605a.tar.gz
Tango-5e59906df60d82248da4ae47677ed59d56fb605a.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control')
-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;