示例#1
0
 def __init__(self, title='MAVProxy: Checklist'):
     import threading
     self.title = title
     self.menu_callback = None
     self.parent_pipe, self.child_pipe = multiproc.Pipe()
     self.close_event = multiproc.Event()
     self.close_event.clear()
     self.child = multiproc.Process(target=self.child_task)
     self.child.start()
示例#2
0
 def __init__(self,title='MAVProxy: Horizon Indicator'):
     self.title  = title
     # Create Pipe to send attitude information from module to UI
     self.child_pipe_recv,self.parent_pipe_send = multiproc.Pipe()
     self.close_event = multiproc.Event()
     self.close_event.clear()
     self.child = multiproc.Process(target=self.child_task)
     self.child.start()
     self.child_pipe_recv.close()
示例#3
0
 def __init__(self, parmsToShow, title='MAVProxy: Swarm Control', takeoffalt=10):
     self.title = title
     self.parmsToShow = parmsToShow
     self.takeoffalt = takeoffalt
     self.parent_pipe, self.child_pipe = multiproc.Pipe()
     self.close_event = multiproc.Event()
     self.close_event.clear()
     self.child = multiproc.Process(target=self.child_task)
     self.child.start()
示例#4
0
 def __init__(self, settings):
     self.settings = settings
     self.parent_pipe, self.child_pipe = multiproc.Pipe()
     self.close_event = multiproc.Event()
     self.close_event.clear()
     self.child = multiproc.Process(target=self.child_task)
     self.child.start()
     t = threading.Thread(target=self.watch_thread)
     t.daemon = True
     t.start()
示例#5
0
    def __init__(self, title="MAVProxy: Sailing Dashboard"):
        self.title = title

        # create a pipe for communication from the module to the GUI
        self.child_pipe_recv, self.parent_pipe_send = multiproc.Pipe(
            duplex=False)
        self.close_event = multiproc.Event()
        self.close_event.clear()

        # create and start the child process
        self.child = multiproc.Process(target=self.child_task)
        self.child.start()

        # prevent the parent from using the child connection
        self.child_pipe_recv.close()
示例#6
0
    def __init__(self,
                 title='SlipMap',
                 lat=-35.362938,
                 lon=149.165085,
                 width=800,
                 height=600,
                 ground_width=1000,
                 tile_delay=0.3,
                 service="MicrosoftSat",
                 max_zoom=19,
                 debug=False,
                 brightness=0,
                 elevation=False,
                 download=True,
                 show_flightmode_legend=True,
                 timelim_pipe=None):

        self.lat = lat
        self.lon = lon
        self.width = width
        self.height = height
        self.ground_width = ground_width
        self.download = download
        self.service = service
        self.tile_delay = tile_delay
        self.debug = debug
        self.max_zoom = max_zoom
        self.elevation = elevation
        self.oldtext = None
        self.brightness = brightness
        self.legend = show_flightmode_legend
        self.timelim_pipe = timelim_pipe

        self.drag_step = 10

        self.title = title
        self.app_ready = multiproc.Event()
        self.event_queue = multiproc.Queue()
        self.object_queue = multiproc.Queue()
        self.close_window = multiproc.Semaphore()
        self.close_window.acquire()
        self.child = multiproc.Process(target=self.child_task)
        self.child.start()
        self._callbacks = set()

        # ensure the map application is ready before returning
        if not self._wait_ready(timeout=2.0):
            raise Exception("map not ready")
示例#7
0
 def __init__(self, title='MAVProxy: console'):
     textconsole.SimpleConsole.__init__(self)
     self.title = title
     self.menu_callback = None
     self.parent_pipe_recv, self.child_pipe_send = multiproc.Pipe(
         duplex=False)
     self.child_pipe_recv, self.parent_pipe_send = multiproc.Pipe(
         duplex=False)
     self.close_event = multiproc.Event()
     self.close_event.clear()
     self.child = multiproc.Process(target=self.child_task)
     self.child.start()
     self.child_pipe_send.close()
     self.child_pipe_recv.close()
     t = threading.Thread(target=self.watch_thread)
     t.daemon = True
     t.start()
示例#8
0
 def __init__(self,
              fields,
              title='MAVProxy: LiveGraph',
              timespan=20.0,
              tickresolution=0.2,
              colors=[
                  'red', 'green', 'blue', 'orange', 'olive', 'cyan',
                  'magenta', 'brown', 'violet', 'purple', 'grey', 'black'
              ]):
     self.fields = fields
     self.colors = colors
     self.title = title
     self.timespan = timespan
     self.tickresolution = tickresolution
     self.values = [None] * len(self.fields)
     self.parent_pipe, self.child_pipe = multiproc.Pipe()
     self.close_graph = multiproc.Event()
     self.close_graph.clear()
     self.child = multiproc.Process(target=self.child_task)
     self.child.start()
示例#9
0
 def __init__(self):
     self.parent_pipe, self.child_pipe = multiproc.Pipe()
     self.close_event = multiproc.Event()
     self.close_event.clear()
     self.child = multiproc.Process(target=self.child_task)
     self.child.start()
示例#10
0
 def __init__(self, *args, **kwargs):
     self._child_pipe_recv, self._parent_pipe_send = multiproc.Pipe(duplex=False)
     self._close_event = multiproc.Event()
     self._close_event.clear()
     self._child = None