aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2019-02-10 11:20:37 +0200
committerAvi Levkovich <avi@twine-s.com>2019-02-10 11:20:37 +0200
commitd3c43e82a5302c500d9debb30b345039e225e493 (patch)
tree8e5143f7908ca923acc3020093a3b38ffce02bf9 /Software/Embedded_SW/Embedded/Modules/Control
parent78951cd7cf7f7d346d4f3dbaa1ed2ffdce72dbb1 (diff)
parent3a970a55197e14c53e2692bf64d6caa62f51ed4b (diff)
downloadTango-d3c43e82a5302c500d9debb30b345039e225e493.tar.gz
Tango-d3c43e82a5302c500d9debb30b345039e225e493.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.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/control.c b/Software/Embedded_SW/Embedded/Modules/Control/control.c
index 100fefbd8..69820e306 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/control.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/control.c
@@ -359,20 +359,6 @@ uint32_t GetControlLowDevice_i(void)
}
uint32_t ControlLoop(uint32_t tick)
{
- //call all modules control functions
- //test dancers and speed encoders
- //check all callback units (state machine waiting for completion of a change)
- //uint32_t ControlDevice_i;
- /*bool Ten_msTick, Hundred_msTick, Onesecond_Tick,Tick98,Tick998;
- Ten_msTick = (tick%eTenMillisecond == 0) ?true:false;
- Hundred_msTick = (tick%eHundredMillisecond == 0) ?true:false;
-// Hundred_msTick = (tick%200 == 0) ?true:false;
- Onesecond_Tick = (tick%eOneSecond == 0) ?true:false;
- Tick98 = (tick%eHundredMillisecond == 98) ?true:false;
-// Tick98 = (tick%200 == 199) ?true:false;
- Tick998 = (tick%eOneSecond == 996) ?true:false;
-*/
- //ROM_IntMasterDisable();
//for (ControlDevice_i = 0; ControlDevice_i < MaxHighDevices;ControlDevice_i++)
for (ControlDevice_i = 0; ControlDevice_i < MAX_TANGO_CONTROL_DEVICES;ControlDevice_i++)
{
@@ -404,18 +390,6 @@ uint32_t ControlLoop(uint32_t tick)
}
uint32_t ControlLowLoop(uint32_t tick)
{
- //call all modules control functions
- //test dancers and speed encoders
- //check all callback units (state machine waiting for completion of a change)
- //uint32_t Device_i;
- //bool Ten_msTick, Hundred_msTick, Onesecond_Tick,Tick98,Tick998;
- //Ten_msTick = (tick%eTenMillisecond == 0) ?true:false;
- //Hundred_msTick = (tick%eHundredMillisecond == 0) ?true:false;
- //Onesecond_Tick = (tick%eOneSecond == 0) ?true:false;
- //Tick98 = (tick%eHundredMillisecond == 98) ?true:false;
- //Tick998 = (tick%eOneSecond == 996) ?true:false;
-
- //ROM_IntMasterDisable();
for (ControlLowDevice_i = 0; ControlLowDevice_i < MAX_TANGO_CONTROL_DEVICES;ControlLowDevice_i++)
{
if (ControlArray[ControlLowDevice_i].ControlActive)