Skip to content
Snippets Groups Projects
Commit 039a6e55 authored by Fabio Vitello's avatar Fabio Vitello
Browse files

#588 enable elevation tracking when servo is ready

parent 653081a9
No related branches found
No related tags found
No related merge requests found
...@@ -58,16 +58,16 @@ void MSBossTracker::runLoop() ...@@ -58,16 +58,16 @@ void MSBossTracker::runLoop()
MedMinorServoPosition offset_position, correct_position; MedMinorServoPosition offset_position, correct_position;
IRA::CTimer timer; IRA::CTimer timer;
bool tracking = false;
while(!(m_status->ready)) while(!(m_status->ready))
{ {
usleep(5000000);
if(timer.elapsed() > READY_MAX_WAIT) if(timer.elapsed() > READY_MAX_WAIT)
{ {
throw ServoTimeoutError("Timeout wating for Minor Servo to became ready"); throw ServoTimeoutError("Timeout wating for Minor Servo to became ready");
} }
} }
m_status->elevation_tracking = true;
if(m_status->elevation_tracking) if(m_status->elevation_tracking)
{ {
try { try {
......
...@@ -856,7 +856,7 @@ throw (MinorServoErrors::MinorServoErrorsEx) ...@@ -856,7 +856,7 @@ throw (MinorServoErrors::MinorServoErrorsEx)
m_tracking_thread_ptr = NULL; m_tracking_thread_ptr = NULL;
} }
m_servo_status.elevation_tracking = true; //m_servo_status.elevation_tracking = true;
try { try {
TrackerThreadParameters params(&m_servo_status, TrackerThreadParameters params(&m_servo_status,
m_control, m_control,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment