Commit eec1bdbf authored by Andrea Orlat's avatar Andrea Orlat
Browse files

fixed buggy configuratiob Medicina MinorServoBoss

parent e2c215f4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -16,8 +16,10 @@
    AntennaBossInterface="IDL:alma/Antenna/AntennaBoss:1.0"
>
    <status description="The summary status of MinorServoBoss"/>
    <actualSetup description="Mnemonic code that defines a setup" />
    <ready description="servo is ready to receive commands" />
    <actualSetup description="Mnemonic code that defines a setup" />
    <motionInfo description="Textual representation of the minor servo status" />
    <tracking description="The servo is on the commanded position" />
    <starting description="starting a setup" />
    <asConfiguration description="Active surface configuration always off" />
    <elevationTrack description="servo is tracking current elevation" />
+19 −13
Original line number Diff line number Diff line
@@ -73,15 +73,20 @@ def main():
    step=span/points    
    gapS=1000000
   
    x=azimuth
    y=elevation
    for index in range(cycles):
    	#get current time
    	ctime=getTimeStamp().value
    	ctH=EpochHelper(ctime)
	ctime=ctime+30000000
    	print "current time: %02d:%02d:%02d.%06d\t" % (ctH.hour(),ctH.minute(),ctH.second(),ctH.microSecond())
    	for p in range(points):
    		x=azimuth+step*p
    		y=elevation
    		ctime=ctime+gapS*p
		if (index%2==0):
    			x=x+step
		else:
			x=x-step
    		ctime=ctime+gapS
        	tH=EpochHelper(ctime)
        	print "%02d:%02d:%02d.%06d\t\t%lf\t%lf" % (tH.hour(),tH.minute(),tH.second(),tH.microSecond(),x,y)
        	try:
@@ -94,6 +99,7 @@ def main():
            		newEx.setAction("programTrack")
            		newEx.log(simpleClient.getLogger(),ACSLog.ACS_LOG_ERROR)
            		sys.exit(1)
	print "wait for %d seconds" % gap
      	time.sleep(gap)
        
    if not (compName==""):