Skip to content

Commit

Permalink
Add Obstacle type hint #16
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBerry committed Sep 27, 2022
1 parent 952b129 commit f3d0a64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flight/avoidance/obstacle_avoidance.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
from mavsdk import System
from mavsdk.telemetry import Position

# TODO: Update type to actual type # pylint: disable=fixme
# TODO: Update types to the correct types # pylint: disable=fixme
Obstacle = dict[str, float]
Coordinate = dict[str, float]


async def calculate_avoidance_path(
drone: System, obstacle: Coordinate, position: Optional[Position]
drone: System, obstacle: Obstacle, position: Optional[Position]
) -> list[Coordinate]:
"""
Given a drone and an obstacle, calculates a path avoiding the obstacle
Expand Down

0 comments on commit f3d0a64

Please sign in to comment.