From d8256534ea7f5f42b96d7a7be44746b5fc89da2b Mon Sep 17 00:00:00 2001 From: Lab PC Date: Tue, 12 May 2026 09:53:43 -0700 Subject: [PATCH 1/3] fix --- protocols/moving_drop_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/moving_drop_protocol.py b/protocols/moving_drop_protocol.py index 3a9bc02..f0eaa72 100644 --- a/protocols/moving_drop_protocol.py +++ b/protocols/moving_drop_protocol.py @@ -5,7 +5,7 @@ from mavcore.mav_protocol import MAVProtocol from mavcore.messages import SetpointVelocity, LocalPositionNED -from mavcore.types import Waypoint +from mavcore.mavtypes import Waypoint import time import numpy as np from typing import Callable From 60e91d5c71ba8defd0d678b927bea81f9915cd25 Mon Sep 17 00:00:00 2001 From: Lab PC Date: Tue, 12 May 2026 10:16:12 -0700 Subject: [PATCH 2/3] added iter support for waypoints --- mavtypes/waypoint.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mavtypes/waypoint.py b/mavtypes/waypoint.py index 93e2436..f3f11c4 100644 --- a/mavtypes/waypoint.py +++ b/mavtypes/waypoint.py @@ -20,3 +20,8 @@ def __hash__(self): round(self.speed, 10), ) ) + + def __iter__(self): + yield self.x + yield self.y + yield self.z From 00d5adfdb38d24662de4e3ebc49957ac870baea3 Mon Sep 17 00:00:00 2001 From: Aiden Favish Date: Tue, 12 May 2026 10:47:27 -0700 Subject: [PATCH 3/3] ruff --- mavtypes/waypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mavtypes/waypoint.py b/mavtypes/waypoint.py index f3f11c4..0a138d7 100644 --- a/mavtypes/waypoint.py +++ b/mavtypes/waypoint.py @@ -20,7 +20,7 @@ def __hash__(self): round(self.speed, 10), ) ) - + def __iter__(self): yield self.x yield self.y