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() `. :param Command cmd: The command to be added.
(self, cmd)
| 2687 | self._vehicle._wpts_dirty = True |
| 2688 | |
| 2689 | def add(self, cmd): |
| 2690 | ''' |
| 2691 | Add a new command (waypoint) at the end of the command list. |
| 2692 | |
| 2693 | .. note:: |
| 2694 | |
| 2695 | Commands are sent to the vehicle only after you call ::py:func:`upload() <Vehicle.commands.upload>`. |
| 2696 | |
| 2697 | :param Command cmd: The command to be added. |
| 2698 | ''' |
| 2699 | self.wait_ready() |
| 2700 | self._vehicle._handler.fix_targets(cmd) |
| 2701 | self._vehicle._wploader.add(cmd, comment='Added by DroneKit') |
| 2702 | self._vehicle._wpts_dirty = True |
| 2703 | |
| 2704 | def upload(self): |
| 2705 | """ |