% NEJDRIVE V LaserTrackerClass\@LaserTracker\Connect.m nastavit IP trackeru
% !!! dale nastavit spravny reflector: LT.SetCurrentReflector(8)
% ...dalsi nastaveni dle libosti

%nastavovani komentovanim

% LT_01=LaserTracker.Connect();
LT=LaserTracker.Connect();

    LT.RestoreStartupConditions()
    
    
    
   
    LT.SetStatisticMode(ES_StatisticMode.ES_SM_Extended,...
                       ES_StatisticMode.ES_SM_Extended);
  
     
     
     
%     LT.GetStatisticMode();
    
%     LT.GetSystemStatus;
    
    LT.SetUnits(ES_LengthUnit.ES_LU_Millimeter,...
                ES_AngleUnit.ES_AU_Degree,...
                ES_TemperatureUnit.ES_TU_Celsius,...
                ES_PressureUnit.ES_PU_KPascal,...
                ES_HumidityUnit.ES_HU_RH);
    LT.GetUnits;        
    
    %nastaveni souradnych systemu
    LT.SetCoordinateSystemType(ES_CoordinateSystemType.ES_CS_RHR);
%     LT.GetCoordinateSystemType();
    
 %   LT.SetLongSystemParameter(ES_SystemParameter.ES_SP_PowerLockFunctionActive,1);
%     LT.GetLongSystemParameter(ES_SystemParameter(411));

    LT.SetSystemSettings(ES_WeatherMonitorStatus(2));
%     LT.GetSystemSettings();
%     LT.GetEnvironmentParams();
    
    LT.GetReflectors();
    LT.SetCurrentReflector(1); %set RRR 0.5in reflector
%     LT.GetCurrentReflector();

    LT.SetMeasurementMode(ES_MeasMode.ES_MM_Stationary);
%     LT.SetMeasurementMode(ES_MeasMode.ES_MM_6DStationary);
    
%     LT.SetMeasurementMode(ES_MeasMode.ES_MM_StationaryRedundant);
%     LT.SetMeasurementMode(ES_MeasMode.ES_MM_ContinuousTime);
%     LT.GetMeasurementMode();

    LT.SetStationaryModeParams(1000,0);
%     LT.GetStationaryModeParams();
%     
%     LT.SetRedundantStationaryModeParams(500,0,20);
%     LT.GetRedundantStationaryModeParams();

% % %       LT.SetContinuousTimeModeParams(100,0);
% % %       LT.GetContinuousTimeModeParams();
    
%     LT.Initialize();
%     LT.GoBirdBath();

