code: def cmd_long(self, args):
          '''execute supplied command long'''
          if len(args) < 1:
              print("Usage: long <command> [arg1] [arg2]...")
              return
          command = None
          if args[0].isdigit():
              command = int(args[0])
          else:
              try:
                  command = eval("mavutil.mavlink." + args[0])
              except AttributeError as e:
                  try:
                      command = eval("mavutil.mavlink.MAV_CMD_" + args[0])
                  except AttributeError as e:
                      pass
  
          if command is None:
              print("Unknown command long ({0})".format(args[0]))
              return
  
          floating_args = [ float(x) for x in args[1:] ]
          while len(floating_args) < 7:
              floating_args.append(float(0))
          self.master.mav.command_long_send(self.settings.target_system,
                                            self.settings.target_component,
                                            command,
                                            0,
                                            *floating_argsf cmd_long(self, args):
          '''execute supplied command long'''
          if len(args) < 1:
              print("Usage: long <command> [arg1] [arg2]...")
              return
          command = None
          if args[0].isdigit():
              command = int(args[0])
          else:
              try:
                  command = eval("mavutil.mavlink." + args[0])
              except AttributeError as e:
                  try:
                      command = eval("mavutil.mavlink.MAV_CMD_" + args[0])
                  except AttributeError as e:
                      pass
  
          if command is None:
              print("Unknown command long ({0})".format(args[0]))
              return
  
          floating_args = [ float(x) for x in args[1:] ]
          while len(floating_args) < 7:
              floating_args.append(float(0))
          self.master.mav.command_long_send(self.settings.target_system,
                                            self.settings.target_component,
                                            command,
                                            0,
                                            *floating_args)
docs: execute supplied command long