Skip to content

Alpha 0.1.10/724 fix caching in paramscontroller#725

Merged
1Blademaster merged 8 commits intorelease-alpha-0.1.10from
alpha-0.1.10/724-fix-caching-in-paramscontroller
Sep 28, 2025
Merged

Alpha 0.1.10/724 fix caching in paramscontroller#725
1Blademaster merged 8 commits intorelease-alpha-0.1.10from
alpha-0.1.10/724-fix-caching-in-paramscontroller

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

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 implements caching optimizations in the parameters controller to improve performance and reduce redundant parameter requests from the drone. The changes introduce cached parameter retrieval methods and modify various controllers to use cached data when available.

  • Added caching functionality to the parameters controller with getCachedParam() method
  • Updated all controllers to use cached parameters through new getConfig() methods
  • Improved test coverage and reduced test execution times

Reviewed Changes

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

Show a summary per file
File Description
radio/app/controllers/paramsController.py Added getCachedParam() method and automatic caching in getSingleParam()
radio/app/controllers/rcController.py Added getConfig() method using cached parameters and refactored parameter fetching
radio/app/controllers/flightModesController.py Added getConfig() method for cached parameter retrieval
radio/app/controllers/frameController.py Added getConfig() method for cached frame configuration
radio/app/controllers/gripperController.py Split gripper enabled check into cached and non-cached versions
radio/app/controllers/navController.py Added cached loiter radius retrieval and fixed spelling error
radio/app/endpoints/ Updated endpoints to use new getConfig() methods instead of direct property access
radio/app/endpoints/states.py Removed parameter loading logic from state switching
radio/tests/ Updated tests to use shorter timeouts and removed redundant error handling tests
gcs/src/ Added parameter fetching state management to prevent redundant requests

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/endpoints/params.py
Comment thread gcs/src/params.jsx Outdated
1Blademaster and others added 2 commits September 28, 2025 11:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.


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

Comment thread radio/app/controllers/navController.py
@1Blademaster
Copy link
Copy Markdown
Member Author

Need to add proper tests for the individual controllers and caching of parameters in another issue.

@1Blademaster 1Blademaster merged commit 8ad61fc into release-alpha-0.1.10 Sep 28, 2025
7 checks passed
@1Blademaster 1Blademaster deleted the alpha-0.1.10/724-fix-caching-in-paramscontroller branch September 28, 2025 12:13
1Blademaster added a commit that referenced this pull request Sep 28, 2025
* Fix rcController not using cached params, add function to get cached params

* Update other controllers to use cached parameters, update drone connection progress messages

* Fix type hints

* Fix tests

* Update radio/app/controllers/paramsController.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update gcs/src/params.jsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix type hint error

* Fix type hint error again

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants