aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/control.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-02-07 22:29:44 +0200
committerShlomo Hecht <shlomo@twine-s.com>2019-02-07 22:29:44 +0200
commit1cbfa754eea84d46fca7a9b0d27a0a1a212b9944 (patch)
treee166f0dfa1e115522c36ac0303d8b1a6c8d8ce2f /Software/Embedded_SW/Embedded/Modules/Control/control.c
parentb19125a840561531439193020fdb7218f91b5058 (diff)
downloadTango-1cbfa754eea84d46fca7a9b0d27a0a1a212b9944.tar.gz
Tango-1cbfa754eea84d46fca7a9b0d27a0a1a212b9944.zip
reboot after load
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/control.c')
-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 0cda9b5a6..898f7ec67 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/control.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/control.c
@@ -334,20 +334,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++)
{
@@ -379,18 +365,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)