def cmd_map(args):
 from mavflightview import mavflightview_mav, mavflightview_options
 options = 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] = mavflightview_mav(mestate.mlog, options, mestate.flightmode_selections)
 child = multiprocessing.Process(target=map_process, args=[path, wp, fen, used_flightmodes, options])
 child.start()
 mestate.mlog.rewind()

def cmd_map ( args ) : from mavflightview import mavflightview_mav , mavflightview_options options = 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 ] = mavflightview_mav ( mestate . mlog , options , mestate . flightmode_selections ) child = multiprocessing . Process ( target = map_process , args = [ path , wp , fen , used_flightmodes , options ] ) child . start ( ) mestate . mlog . rewind ( )
map command .