Skip to content

Commit

Permalink
Remove type ignore comment #16
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBerry committed Mar 21, 2023
1 parent 41a860c commit a27beea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flight/avoidance/obstacle_avoidance.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ async def calculate_avoidance_velocity(
return None

# Get position of drone
drone_position: mavsdk.telemetry.Position = await anext(drone.telemetry.position())
drone_position_mavsdk: mavsdk.telemetry.Position = await anext(drone.telemetry.position())

# Convert drone position to Point object
# type ignore comments are to allow shadowing
drone_position: Point = Point.from_mavsdk_position(drone_position) # type: ignore
drone_position: Point = Point.from_mavsdk_position(drone_position_mavsdk)

# Convert obstacle data to list of Point objects
obstacle_positions: list[Point] = [
Expand Down

0 comments on commit a27beea

Please sign in to comment.