Added code for generating semaphore flags from servos.