def map_process(args, MAVExpLog, MAVExpFlightModes, MAVExpSettings):
    '''process for a graph'''
    from mavflightview import mavflightview_mav, mavflightview_options
    MAVExpLog.reduce_by_flightmodes(MAVExpFlightModes)

    options = mavflightview_options()
    options.condition = MAVExpSettings.condition
    if len(args) > 0:
        options.types = ','.join(args)
    mavflightview_mav(MAVExpLog, options)
Exemple #2
0
def map_process(args):
    '''process for a graph'''
    from mavflightview import mavflightview_mav, mavflightview_options
    mestate.mlog.reduce_by_flightmodes(mestate.flightmode_selections)
    
    options = mavflightview_options()
    options.condition = mestate.settings.condition
    if len(args) > 0:
        options.types = ','.join(args)
    mavflightview_mav(mestate.mlog, options)
Exemple #3
0
def map_process(args):
    '''process for a graph'''
    from mavflightview import mavflightview_mav, mavflightview_options
    mestate.mlog.reduce_by_flightmodes(mestate.flightmode_selections)

    options = mavflightview_options()
    options.condition = mestate.settings.condition
    if len(args) > 0:
        options.types = ','.join(args)
    mavflightview_mav(mestate.mlog, options)
Exemple #4
0
def map_process(args, MAVExpLog, MAVExpFlightModes, MAVExpSettings):
    '''process for a graph'''
    from mavflightview import mavflightview_mav, mavflightview_options
    MAVExpLog.reduce_by_flightmodes(MAVExpFlightModes)
    
    options = mavflightview_options()
    options.condition = MAVExpSettings.condition
    if len(args) > 0:
        options.types = ','.join(args)
    mavflightview_mav(MAVExpLog, options)
Exemple #5
0
def cmd_map(args):
    '''map command'''
    import mavflightview
    #mestate.mlog.reduce_by_flightmodes(mestate.flightmode_selections)
    #setup and process the map
    options = mavflightview.mavflightview_options()
    options.condition = mestate.settings.condition
    options._flightmodes = mestate.mlog._flightmodes
    options.show_flightmode_legend = mestate.settings.show_flightmode
    options.colour_source='flightmode'
    options.nkf_sample = 1
    if len(args) > 0:
        options.types = ','.join(args)
        if len(options.types) > 1:
            options.colour_source='type'
    [path, wp, fen, used_flightmodes, mav_type, instances] = mavflightview.mavflightview_mav(mestate.mlog, options, mestate.flightmode_selections)
    global map_timelim_pipes
    timelim_pipe = multiproc.Pipe()
    child = multiproc.Process(target=mavflightview.mavflightview_show, args=[path, wp, fen, used_flightmodes, mav_type, options, instances, None, timelim_pipe])
    map_timelim_pipes.append(timelim_pipe)
    global last_xlim
    if last_xlim is not None and mestate.settings.sync_xmap:
        try:
            timelim_pipe[0].send(last_xlim)
        except Exception:
            pass
    child.start()
    mestate.mlog.rewind()
Exemple #6
0
def cmd_map(args):
    '''map command'''
    from mavflightview import mavflightview_mav, mavflightview_options
    #mestate.mlog.reduce_by_flightmodes(mestate.flightmode_selections)
    #setup and process the map
    options = mavflightview_options()
    options.condition = mestate.settings.condition
    options._flightmodes = mestate.mlog._flightmodes
    if len(args) > 0:
        options.types = ','.join(args)
    [path, wp, fen] = mavflightview_mav(mestate.mlog, options, mestate.flightmode_selections)
    child = multiprocessing.Process(target=map_process, args=[path, wp, fen, options])
    child.start()
    mestate.mlog.rewind()
Exemple #7
0
def cmd_map(args):
    '''map command'''
    import mavflightview
    #mestate.mlog.reduce_by_flightmodes(mestate.flightmode_selections)
    #setup and process the map
    options = mavflightview.mavflightview_options()
    options.condition = mestate.settings.condition
    options._flightmodes = mestate.mlog._flightmodes
    options.show_flightmode_legend = mestate.settings.show_flightmode
    if len(args) > 0:
        options.types = ','.join(args)
    [path, wp, fen, used_flightmodes, mav_type] = mavflightview.mavflightview_mav(mestate.mlog, options, mestate.flightmode_selections)
    child = multiproc.Process(target=mavflightview.mavflightview_show, args=[path, wp, fen, used_flightmodes, mav_type, options])
    child.start()
    mestate.mlog.rewind()
Exemple #8
0
def cmd_map(args):
    '''map command'''
    import mavflightview
    #mestate.mlog.reduce_by_flightmodes(mestate.flightmode_selections)
    #setup and process the map
    options = mavflightview.mavflightview_options()
    options.condition = mestate.settings.condition
    options._flightmodes = mestate.mlog._flightmodes
    options.show_flightmode_legend = mestate.settings.show_flightmode
    options.colour_source='flightmode'
    if len(args) > 0:
        options.types = ','.join(args)
        if len(options.types) > 1:
            options.colour_source='type'
    [path, wp, fen, used_flightmodes, mav_type, instances] = mavflightview.mavflightview_mav(mestate.mlog, options, mestate.flightmode_selections)
    child = multiproc.Process(target=mavflightview.mavflightview_show, args=[path, wp, fen, used_flightmodes, mav_type, options, instances])
    child.start()
    mestate.mlog.rewind()