Skip to content

Commit

Permalink
doc: added a comment that explains why Stan's example fails. Will be …
Browse files Browse the repository at this point in the history
…fixed soon.
  • Loading branch information
ntamas committed Oct 14, 2023
1 parent a82b031 commit 376220a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/sbstudio/plugin/operators/land.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 376220a

Please sign in to comment.