as2_python_api.mission_interpreter.mission_stack module
Mission stack of behaviors to be executed by the drone.
- class as2_python_api.mission_interpreter.mission_stack.MissionStack(mission_stack: list | None = None)
Bases:
object
Mission stack.
- add(item: 'MissionItem' | list['MissionItem'])
Add item(s) to the end of the stack.
- property current: MissionItem
Get current item.
- property done: list[MissionItem]
Get done items.
- insert(item: 'MissionItem' | list['MissionItem'])
Insert item(s) to the beggining of the stack.
- property last_done
Get last done item.
- next_item() MissionItem
Get next item in the stack.
- property pending: list[MissionItem]
Get pending items.
- previous_item() MissionItem
Get previous item in the stack.