Skip to content

Add input to set loiter radius#678

Merged
1Blademaster merged 6 commits intorelease-alpha-0.1.10from
alpha-0.1.10/509-add-action-to-set-loiter-radius
Sep 9, 2025
Merged

Add input to set loiter radius#678
1Blademaster merged 6 commits intorelease-alpha-0.1.10from
alpha-0.1.10/509-add-action-to-set-loiter-radius

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

@1Blademaster 1Blademaster commented Sep 8, 2025

image

Note: this is not always functional as there is a bug with getSingleParam not fetching the parameter properly (https://github.com/orgs/Avis-Drone-Labs/projects/10/views/1?pane=issue&itemId=127953840)

@1Blademaster 1Blademaster requested a review from Copilot September 8, 2025 20:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to set and retrieve the loiter radius parameter for drone navigation. The implementation provides both backend API endpoints and frontend UI components to manage the loiter radius setting.

  • Adds new socket endpoints for getting and setting loiter radius values
  • Implements frontend input component for users to modify loiter radius
  • Updates Redux state management to track loiter radius data

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
radio/app/endpoints/nav.py Adds socket endpoints for getting/setting loiter radius with validation
radio/app/controllers/paramsController.py Adds debugging print statement and timing delay
radio/app/controllers/navController.py Implements loiter radius get/set methods using WP_LOITER_RAD parameter
radio/app/controllers/missionController.py Repositions is_listening flag assignment for better control flow
gcs/src/redux/slices/droneInfoSlice.js Adds loiter radius state management and actions
gcs/src/redux/slices/droneConnectionSlice.js Adds emitter for getting loiter radius
gcs/src/redux/middleware/socketMiddleware.js Handles socket events for loiter radius operations
gcs/src/redux/middleware/emitters.js Implements socket emission for loiter radius requests
gcs/src/components/layout.jsx Triggers loiter radius fetch on dashboard load
gcs/src/components/dashboard/tabsSectionTabs/actionTabsSection.jsx Adds UI component for setting loiter radius
gcs/src/components/dashboard/tabsSection.jsx Passes loiter radius data to action tabs

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread radio/app/controllers/paramsController.py Outdated
Comment thread radio/app/controllers/navController.py Outdated
Comment thread gcs/src/redux/middleware/socketMiddleware.js Outdated
Comment thread gcs/src/redux/slices/droneInfoSlice.js Outdated
Comment thread radio/app/controllers/paramsController.py
Copy link
Copy Markdown
Contributor

@NexInfinite NexInfinite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I've cleaned up the styling here
image

@1Blademaster 1Blademaster merged commit 1e49445 into release-alpha-0.1.10 Sep 9, 2025
7 checks passed
@1Blademaster 1Blademaster deleted the alpha-0.1.10/509-add-action-to-set-loiter-radius branch September 9, 2025 14:16
@1Blademaster 1Blademaster linked an issue Sep 9, 2025 that may be closed by this pull request
1Blademaster added a commit that referenced this pull request Sep 28, 2025
* Add input to set loiter radius

* Address copilot review comments

* Fix mypy issues

* aligned inputs

* formatted

* cleaned up comment

---------

Co-authored-by: Julian Jones <julianjones663@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add action to set loiter radius

3 participants