aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-07-27 15:26:33 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-07-27 15:26:33 +0300
commite3bdc83a7be6206ab11dca8c08f1eec896a6d604 (patch)
treea9667cf83d01a946ccb6e06ae3d42589a631cde6 /Software/Embedded_SW/Embedded/Modules/Control
parent925bf377913f1003324d746b9e28e053186bfa29 (diff)
parentb14e00420970b12e57433cbf964a6aad92c389ea (diff)
downloadTango-e3bdc83a7be6206ab11dca8c08f1eec896a6d604.tar.gz
Tango-e3bdc83a7be6206ab11dca8c08f1eec896a6d604.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_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;