Exemplo n.º 1
0
 def setCamAngle(self, pitch, roll, request):
     LOG.log_app_info("Setting angle to (pitch/roll): (" + str(pitch) + "/" + str(roll) + ")")
     key = "CAM"
     if not self.__pending_acks.has_key(key):
         self.__pending_acks[key] = request
         self.writeData(Command.getCmd_setCam(pitch, roll))
     else:
         self.abstractUAV.ack_error(request, 1, "already pending action")