Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created CSV for waypoint Alpha; Added conversion of waypoint Alpha to…
Browse files Browse the repository at this point in the history
… dictionary in main task_1; Added conversion of waypoint Alpha dictionary to list in main task_1
Balaji Leninrajan committed Feb 22, 2024
1 parent e9162d8 commit 93a803f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions path_2024_task_1.py
Original file line number Diff line number Diff line change
@@ -7,7 +7,8 @@

from modules import load_waypoint_name_to_coordinates_map, waypoints_dict_to_list

WAYPOINT_ALPHA_FILE_PATH = pathlib.Path("2024", "waypoints", "waypoint_alpha_task_1.csv")
WAYPOINT_ALPHA_FILE_PATH = pathlib.Path(
"2024", "waypoints", "waypoint_alpha_task_1.csv")
CONNECTION_ADDRESS = "tcp:localhost:14550"


@@ -18,7 +19,7 @@ def run() -> int:
Uploads mission to run a maximum number of laps and monitors the mission for early landing.
"""
# Wait ready is false as the drone may be on the ground
drone = dronekit.connect(CONNECTION_ADDRESS, wait_ready = False)
drone = dronekit.connect(CONNECTION_ADDRESS, wait_ready=False)

# Create waypoint Alpha name to coordinate dictionary
result, waypoint_alpha_dictionary = \
@@ -28,7 +29,7 @@ def run() -> int:
if not result:
print("ERROR: load waypoint alpha to coordinates map")
return -1

# Convert waypoint Alpha dictionary to list
result, waypoint_alpha_list = \
waypoints_dict_to_list.waypoints_dict_to_list(

0 comments on commit 93a803f

Please sign in to comment.