Skip to content

Commit

Permalink
Merge branch 'main' of github.com:hotosm/drone-flightplan
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Aug 1, 2024
2 parents 9e2b760 + 3741734 commit 148b194
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,36 @@ Parameters:
- generate_3d : True if you want to generate 3d imageries. False if you just want 2d imageries. 3d imageries will take photos ad 3 different angles (-90, -45 and lateral 45 degree angle)
```

### Waypoint File
DJI drones requires waypoint file.
WPML route files all end with a ".kmz" suffix and are essentially archive files packed in ZIP format. After decompression of a standard WPML route file, its file structure is as follows

![image](https://github.com/user-attachments/assets/bb7a6f95-29f8-40e0-972c-92a974aa0bf0)

You can find more on this from the documentation [here](https://github.com/dji-sdk/Cloud-API-Doc/blob/master/docs/en/60.api-reference/00.dji-wpml/10.overview.md).

You can get the waypoint file following this steps:
```
from drone_flightplan import flightplan
flightplan.generate_flightplan(
project_area,
altitude_above_ground_level,
forward_overlap,
side_overlap,
generate_each_points,
generate_3d,
output_file_path
)
Parameters:
- polygon_geojson = Geojson Polygon AOI
- altitude_above_ground_level = The height at which you want to fly the drone from ground level
- forward_overlap = Forward Overlap you want in the imageries
- side_overlap = Desired Side Overlap you want in the imageries
- generate_each_points (bool) : True if you want waypoints and False if you want waylines
- generate_3d : True if you want to generate 3d imageries. False if you just want 2d imageries. 3d imageries will take photos ad 3 different angles (-90, -45 and lateral 45 degree angle)
- output_file_path: The path where you want your output flightplan
```

0 comments on commit 148b194

Please sign in to comment.