

SVC                         = true +UI=$INSROOT/share/ui/Sharknir/Drot.ui       # the graphical user interface of the SVC
SVC.LOAD                    = [NAME=derotatorsim, LIB=SharknirDrotService]      # define the service name and the corresponding library
                                                                                # clients search for the service name in the map in order to create a connection
SVC.DEVICE                  = derotatorsim                                      # the name of the used device
SVC.IIF:Endpoint            = [ALIAS=ltcs.iif-svr.IIF]

DEV.1.CONFIG                = track_ctrl/track_ctrl.drot.derotator-dev-DUMMY.cfg  # include the configuration file of the device
SVC.CFG.INTERVAL:Time       = 00:01:59.800000      +UNIT=hour

SVC.CFG.FAULT_TOLERANCE     = 350                              # The trajectory fault tolerance.
SVC.CFG.FREQUENCY           = 1                                # The samples per second.
SVC.CFG.SAMPLES_PER_SEGMENT = 100                              # The samples per segment.

SVC.CFG.RESOLUTION:U64      = 40960000                         # The motor resolution including all gear ratio in [steps/rev].
SVC.CFG.BACKLASH            = 300                              # The distance to remove the motor backlash [steps]


SVC.CFG.POSITION.REFERENCE  = 21295                            # The position in absenc of the drot where the zenith is along the y direction of the scicam
#SVC.CFG.POSITION.REFERENCE  = 20423                           # The position in absenc of the drot where the zenith is along the y direction of the scicam
SVC.CFG.POSITION.SLITNARROW = -1.8                             # The error in degree of the narrow slit from the vertical measured counterclockwise
SVC.CFG.POSITION.SLITWIDE   = -2.3                             # The error in degree of the wide slit from the vertical measured counterclockwise


# Auxiliary values to reconstruct the WCS matrix from time zero while starting the rotation.
# It is not clear whether these declarations are needed, since
# ln/laos-drot/src/Interface/Laos/LaosDrotServiceWorker.basda
# seems also to add these properties -- but not to distribute them. RJM 2016-11-27
SVC.VAR.PANG_STRT_ANG:Double = 9999  +PREC:Int=3 +UNIT:String=DEGREE
SVC.VAR.MOT_STRT_ANG:Double  = 9999  +PREC:Int=3 +UNIT:String=DEGREE

# Relative sense of motor steps and IIF rotator angle velocities.
# Negative values mean that the motor steps should increase when the
# derotator polynomial angle decreases (as e.g. for the DX GWS). If the absolute
# value of DIRECTION is 0.5 this means that the motor steps are only half
# of the values implied by the RESOLUTION, e.g. for the K-mirror where the
# motor axis should move with half the velocity of the required beam rotation.
SVC.CFG.DIRECTION:Float = -1 #-0.5

# The number of LBT trajectory polynomials to query (3600 means 1 hr)
SVC.CFG.NUMBER_OF_POLYNOMIALS:Int = 300 #7200 #10800

# The time distance between two LBT trajectory polynomials in [seconds]
SVC.CFG.SAMPLING_RATE:Double      = 1.0

# The LBT trajectory polynomial order
SVC.CFG.POLYNOMIAL_ORDER:Int      = 2
SVC.CFG.UI.POSITION               = 3          # index starts at 0
