From 376220a4987344ec902c3cbf2c86db487941dc09 Mon Sep 17 00:00:00 2001 From: Tamas Nepusz Date: Sun, 15 Oct 2023 01:02:04 +0200 Subject: [PATCH] doc: added a comment that explains why Stan's example fails. Will be fixed soon. --- src/modules/sbstudio/plugin/operators/land.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/sbstudio/plugin/operators/land.py b/src/modules/sbstudio/plugin/operators/land.py index 831fac79..1b2bf2fd 100644 --- a/src/modules/sbstudio/plugin/operators/land.py +++ b/src/modules/sbstudio/plugin/operators/land.py @@ -160,6 +160,12 @@ def _run(self, storyboard, *, context) -> bool: for index, (delay, post_delay) in enumerate(zip(delays, post_delays)): if delay > 0 or post_delay > 0: override = entry.add_new_schedule_override() + + # index is not okay here. index is the index of the drone + # within the Drones collection. What we would need is the + # index of the _marker_ in the _source_ formation (i.e. the + # formation before the landing transition) that the drone + # occupies before landing. override.index = index override.pre_delay = delay override.post_delay = post_delay