code: def add(self, cmd):
          '''
          Add a new command (waypoint) at the end of the command list.
  
          .. note::
  
              Commands are sent to the vehicle only after you call ::py:func:`upload() <Vehicle.commands.upload>`.
  
          :param Command cmd: The command to be added.
          '''
          self.wait_ready()
          self._vehicle._handler.fix_targets(cmd)
          self._vehicle._wploader.add(cmd, comment='Added by DroneKit')
          self._vehicle._wpts_dirty = Truf add(self, cmd):
          '''
          Add a new command (waypoint) at the end of the command list.
  
          .. note::
  
              Commands are sent to the vehicle only after you call ::py:func:`upload() <Vehicle.commands.upload>`.
  
          :param Command cmd: The command to be added.
          '''
          self.wait_ready()
          self._vehicle._handler.fix_targets(cmd)
          self._vehicle._wploader.add(cmd, comment='Added by DroneKit')
          self._vehicle._wpts_dirty = True
docs: Add a new command (waypoint) at the end of the command list.
  
          .. note::
  
              Commands are sent to the vehicle only after you call ::py:func:`upload() <Vehicle.commands.upload>`.
  
          :param Command cmd: The command to be added.