Commit e609b6ed authored by Fabio Vitello's avatar Fabio Vitello
Browse files

#588 start elevation tracking on servosetup

parent e8ff8d25
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -401,6 +401,17 @@ throw (MinorServoErrors::SetupErrorExImpl)
            m_setup_thread_ptr->resume();
        CUSTOM_LOG(LM_FULL_INFO, "MinorServo::MinorServoBossImpl::setupImpl",
                   (LM_DEBUG, "Started setup positioning thread"));

        //enable elevation tracking
        try
        {
            setElevationTrackingImpl(IRA::CString("ON"));
        }
        catch (...)
        {
            THROW_EX(MinorServoErrors, SetupErrorEx, "cannot turn the tracking on",
                     false);
        }
    }catch(const ServoTimeoutError& ste){
        THROW_EX(MinorServoErrors, SetupErrorEx, ste.what(), false);
    }catch(const ServoConnectionError& sce){