aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-14 15:57:56 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-14 15:57:56 +0300
commitc71bc6862bd3d3bcf8b10fd43cfe8bf52ee018c4 (patch)
tree20b92806c4c7761aab738b85d7addf7bd13f00df /Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
parenta775178c063082eb6a401b4254a046133840af03 (diff)
parent9d4d0c084e084273ae62fd09863142aa2f6ef53d (diff)
downloadTango-c71bc6862bd3d3bcf8b10fd43cfe8bf52ee018c4.tar.gz
Tango-c71bc6862bd3d3bcf8b10fd43cfe8bf52ee018c4.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_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.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
index 56e1bf844..fdae44171 100644
--- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c
@@ -121,7 +121,6 @@ void ThreadUpdateProcessLength (double length, void *Funcptr)
}
double MotorSentData[1000] = {0};
uint32_t PosDif[1000] = {0};
-uint32_t tick[1000] = {0};
int MotorDataIndex = 0;
@@ -172,15 +171,14 @@ uint32_t ThreadLengthCBFunction(uint32_t IfIndex, uint32_t ReadValue)
PosDif[MotorDataIndex] = CurrentPosition;
//PosDif[MotorDataIndex] = positionDiff;
MotorSentData[MotorDataIndex] = length;
- tick[MotorDataIndex] = UsersysTickGet();
MotorDataIndex+=1;
if (MotorDataIndex == 999) MotorDataIndex = 0;
static int pooler_counter = 0;
pooler_counter++;
if (pooler_counter%10 == 0)
{
- //SendJobProgress(CurrentProcessedLength/CurrentRequestedLength,CurrentSegmentId,false);
- SendJobProgress(/*KeepNormalizedError*/MotorControlConfig[index].m_calculatedError,CurrentSegmentId,false);
+ SendJobProgress(CurrentProcessedLength/CurrentRequestedLength,CurrentSegmentId,false);
+ //SendJobProgress(/*KeepNormalizedError*/MotorControlConfig[index].m_calculatedError,CurrentSegmentId,false);
}
if (pooler_counter>=100)
@@ -486,10 +484,10 @@ uint32_t ThreadPreSegmentState(void *JobDetails)
//#warning rocker disabled
if (MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_RLOADING].has_directionthreadwize)
MotorSetDirection((TimerMotors_t)HARDWARE_MOTOR_TYPE__MOTO_RLOADING,MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_RLOADING].directionthreadwize);
- MotorSetSpeed(HARDWARE_MOTOR_TYPE__MOTO_RLOADING, 10);
+ MotorSetSpeed(HARDWARE_MOTOR_TYPE__MOTO_RLOADING, 5);
if (MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_LLOADING].has_directionthreadwize)
MotorSetDirection((TimerMotors_t)HARDWARE_MOTOR_TYPE__MOTO_LLOADING,MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_LLOADING].directionthreadwize);
- MotorSetSpeed(HARDWARE_MOTOR_TYPE__MOTO_LLOADING, 10);
+ MotorSetSpeed(HARDWARE_MOTOR_TYPE__MOTO_LLOADING, 5);
//#warning rocker disabled
// MotorMovetoLimitSwitch (HARDWARE_MOTOR_TYPE__MOTO_RDRIVING,MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_RDRIVING].directionthreadwize, 0, GPI_LS_RLOADMOTOR_UP, EndState); //TODO