Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Flightplan Rotation #444

Merged
merged 3 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ async def odm_webhook_for_processing_whole_project(
node_odm_url=settings.NODE_ODM_URL,
dtm_project_id=dtm_project_id,
odm_task_id=odm_task_id,
odm_status=status["code"],
odm_status_code=status["code"],
)

return {"message": "Webhook received", "task_id": dtm_project_id}
Expand Down Expand Up @@ -542,7 +542,7 @@ async def odm_webhook_for_processing_a_single_task(
message="Task completed.",
dtm_task_id=dtm_task_id,
dtm_user_id=dtm_user_id,
odm_status=40,
odm_status_code=40,
)

elif status["code"] == 30 and state_value != State.IMAGE_PROCESSING_FAILED:
Expand Down
3 changes: 2 additions & 1 deletion src/backend/app/waypoints/waypoint_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ async def get_task_waypoint(
task_id: uuid.UUID,
download: bool = True,
mode: FlightMode = FlightMode.waylines,
rotation_angle: float = 0,
take_off_point: waypoint_schemas.PointField = None,
):
"""
Expand Down Expand Up @@ -119,7 +120,7 @@ async def get_task_waypoint(
"gsd": gsd,
"forward_overlap": forward_overlap,
"side_overlap": side_overlap,
"rotation_angle": 0,
"rotation_angle": rotation_angle,
"generate_3d": generate_3d,
"take_off_point": take_off_point,
}
Expand Down
2 changes: 1 addition & 1 deletion src/backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies = [
"pyodm>=1.5.11",
"asgiref>=3.8.1",
"bcrypt>=4.2.1",
"drone-flightplan>=0.3.4rc2",
"drone-flightplan>=0.3.4",
"Scrapy==2.12.0",
"asgi-lifespan>=2.1.0",
]
Expand Down
9 changes: 5 additions & 4 deletions src/backend/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading