aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2019-06-03 18:05:41 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2019-06-03 18:05:41 +0300
commitd503013b20ff2b5dbe34b8fd17c0423f46271326 (patch)
tree4b0dd4814e609afa3f2b02372e24b0a98e646313 /Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
parentf2b797dc5c86e38509dd096f88f4b3a81aa5558a (diff)
parent002f8f76ede07a2b7b444a8e03f9f172b2fb952e (diff)
downloadTango-d503013b20ff2b5dbe34b8fd17c0423f46271326.tar.gz
Tango-d503013b20ff2b5dbe34b8fd17c0423f46271326.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
index a285d4194..4743008e5 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
@@ -114,7 +114,10 @@ uint32_t Control_Delta_Position_Pass(uint32_t Current_Read,uint32_t Previous_Rea
if (Current_Read < Previous_Read)
+ {
Time_Pass = (MAX_COUNTER - Previous_Read) + Current_Read + 1;
+ Report("Length rollover",__FILE__,__LINE__,(int)Current_Read,RpWarning,(int)Previous_Read,0);
+ }
else
Time_Pass = Current_Read - Previous_Read;
@@ -771,7 +774,7 @@ void SetOriginMotorSpeed(float process_speed)
//MotorControlConfig[Motor_i].m_SetParam = motor_speed;
OriginalMotorSpd_2PPS[Motor_i] = (int) motor_speed;
CurrentControlledSpeed[Motor_i] = (int) motor_speed;
- Report("Original Speed",__FILE__,Motor_i,motor_speed,RpWarning,process_speed,0);
+ //Report("Original Speed",__FILE__,Motor_i,motor_speed,RpWarning,process_speed,0);
for (i = 0; i <= MAX_CONTROL_SAMPLES; i++)
MotorSpeedSamples[Motor_i][i] = motor_speed;