Download all waypoints from the vehicle. The download is asynchronous. Use :py:func:`wait_ready()` to block your thread until the download is complete.
(self)
| 2649 | self._vehicle = vehicle |
| 2650 | |
| 2651 | def download(self): |
| 2652 | ''' |
| 2653 | Download all waypoints from the vehicle. |
| 2654 | The download is asynchronous. Use :py:func:`wait_ready()` to block your thread until the download is complete. |
| 2655 | ''' |
| 2656 | self.wait_ready() |
| 2657 | self._vehicle._ready_attrs.remove('commands') |
| 2658 | self._vehicle._wp_loaded = False |
| 2659 | self._vehicle._master.waypoint_request_list_send() |
| 2660 | # BIG FIXME - wait for full wpt download before allowing any of the accessors to work |
| 2661 | |
| 2662 | def wait_ready(self, **kwargs): |
| 2663 | """ |