Exemplo n.º 1
0
 def goto(self, target, request):
     """keeping the target but moving to a different point for resuming"""
     maxSpeed= 10 ## in m/s
     timeToStay=1 ## in s
     acc=2 ## in m
     lng=float(target["lon"])
     lat=float(target["lat"])
     heading=float(target["heading"])
     height=float(target["alt"])
     command = Command.getCmd_goto(maxSpeed,timeToStay,acc,lng,lat,heading,height)
     self.writeData(command)
     key = "GOTO"
     if not self.__pending_acks.has_key(key):
         self.__pending_acks[key] = request
     self.__onMission = True ## FIXME: curway checking?
     LOG.log_app_info(key)