Skip to content

Commit

Permalink
Fix typing bug in waypoint state impl #23
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBerry committed Oct 4, 2024
1 parent 4cac9c4 commit c7bfda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state_machine/states/impl/waypoint_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def waypoint_logic(self: Waypoint) -> None:
).distance_from_origin()
)

curr_altitude: float = drone_position.relative_altitude_m
curr_altitude: float = drone_position.alt
# altitude_slope: float = (waypoint.altitude - curr_altitude) / path_length

goto_points.pop() # The last point is just the waypoint
Expand Down

0 comments on commit c7bfda4

Please sign in to comment.