From 1239bd827a2affdf9e081d65783ff4f51801563f Mon Sep 17 00:00:00 2001 From: Muhammad Bilal Date: Tue, 19 Mar 2024 17:38:38 +0500 Subject: [PATCH] Update mission.py A new parameter is added to the "MissionItem" constructor, but that parameter was mission from the example file which was causing the error to appear upon running the mission.py file. I added the missing parameter at the appropriate location. --- examples/mission.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/mission.py b/examples/mission.py index 07d5de63..c80b7a2e 100755 --- a/examples/mission.py +++ b/examples/mission.py @@ -36,7 +36,8 @@ async def run(): float('nan'), float('nan'), float('nan'), - float('nan'))) + float('nan'), + MissionItem.VehicleAction.NONE)) mission_items.append(MissionItem(47.398036222362471, 8.5450146439425509, 25, @@ -49,7 +50,8 @@ async def run(): float('nan'), float('nan'), float('nan'), - float('nan'))) + float('nan'), + MissionItem.VehicleAction.NONE)) mission_items.append(MissionItem(47.397825620791885, 8.5450092830163271, 25, @@ -62,7 +64,8 @@ async def run(): float('nan'), float('nan'), float('nan'), - float('nan'))) + float('nan'), + MissionItem.VehicleAction.NONE)) mission_plan = MissionPlan(mission_items)