Пример #1
0
#print "LCD.func1() output:"
#print lightsDebug
#print numbersDebug
#print boxesDebug

#print "Program initializes"

loopExecutions = 1

while loopExecutions != 0:
    #DEBUGGING:
    lighting = 0
    numArrays = 4
    numSpeakPerArray = 8
    
    lighting, numArrays, numSpeakPerArray = LCD.func1()
    if True:
        #print "Beginning scan"
        #print "currentPhysicalPan = ", currentPhysicalPan
        stops = 9
        stopsIncr = 0
        while(stopsIncr != stops): # 9 executions, covering 20 - 340 degrees, in 40 degree increments
            # Start scanning at 20 degrees clockwise (looking down from top)
            if(stopsIncr == 0):
                targetPan += 20
                #print "Moving to my first starting position of targetPan = ", targetPan

            howMuchPanned = targetPan - currentPhysicalPan
            #print "Moving ", howMuchPanned, " to targetPan = ", targetPan
            #UNCOMMENT OUT THE FOLLOWING 1 LINE WHEN YOU'RE READY
            currentPhysicalPan = SetTargetPosition(targetPan, currentPhysicalPan, motorPan)