Skip to content

Commit

Permalink
hotfix: import error in drone_flightplan
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Aug 5, 2024
1 parent c4b0848 commit 729ab26
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drone_flightplan/flightplan.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
import argparse
import geojson
import pyproj
import sampleRasterAtPoints as sr

from drone_flightplan.waypoints import create_waypoint, calculate_parameters
from drone_flightplan.create_wpml import create_xml

from drone_flightplan import sampleRasterAtPoints as sr

# Instantiate logger
log = logging.getLogger(__name__)
Expand Down Expand Up @@ -102,9 +100,9 @@ def add_speed_and_agl(placemark):
new_placemark.append(
f"{placemark['coordinates'][0]},{placemark['coordinates'][1]}"
)
new_placemark.append(str(agl + agl_diff))
new_placemark.append(str(agl + agl_diff)) # altitude from ground level
new_placemark.append(str(parameters["ground_speed"]))
new_placemark.append(str(placemark["angle"]))
new_placemark.append(str(placemark["angle"])) # direction angle
new_placemark.append(str(placemark["take_photo"]))
new_placemark.append(str(placemark["gimbal_angle"]))
return new_placemark
Expand Down

0 comments on commit 729ab26

Please sign in to comment.