Return number of waypoints. :return: The number of waypoints in the sequence.
(self)
| 2742 | self._vehicle._master.waypoint_set_current_send(index) |
| 2743 | |
| 2744 | def __len__(self): |
| 2745 | ''' |
| 2746 | Return number of waypoints. |
| 2747 | |
| 2748 | :return: The number of waypoints in the sequence. |
| 2749 | ''' |
| 2750 | return max(self._vehicle._wploader.count() - 1, 0) |
| 2751 | |
| 2752 | def __getitem__(self, index): |
| 2753 | if isinstance(index, slice): |