Convert config to redux#719
Merged
NexInfinite merged 15 commits intorelease-alpha-0.1.10from Sep 26, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR converts configuration-related state management from direct socket handling to Redux state management by introducing a new configSlice and updating all related components.
- Creates a centralized config Redux slice to manage gripper, flight modes, frame configuration, and radio channel data
- Updates all config components to use Redux hooks instead of direct socket communication
- Migrates socket event handling to the Redux middleware pattern
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| gcs/src/redux/store.js | Adds configSlice to the root reducer |
| gcs/src/redux/slices/droneInfoSlice.js | Adds gripperEnabled state field |
| gcs/src/redux/slices/configSlice.js | New Redux slice for configuration state management |
| gcs/src/redux/middleware/socketMiddleware.js | Adds config-specific socket event handlers and RC_CHANNELS processing |
| gcs/src/redux/middleware/emitters.js | Adds config-related socket emission handlers |
| gcs/src/config.jsx | Converts to use Redux for gripper state instead of direct socket |
| gcs/src/components/config/radioCalibration.jsx | Migrates from local state to Redux for radio channels |
| gcs/src/components/config/motorTest.jsx | Converts motor test functionality to Redux |
| gcs/src/components/config/gripper.jsx | Updates gripper component to use Redux dispatch |
| gcs/src/components/config/flightModes.jsx | Migrates flight modes to Redux state management |
| .vscode/settings.json | Adds spelling dictionary entries for new terms |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
1Blademaster
approved these changes
Sep 26, 2025
1Blademaster
pushed a commit
that referenced
this pull request
Sep 28, 2025
* initial config changes * moved to own slice * flightMode.jsx done * gripper.jsx done * motorTest.jsx done * radioCalibration.jsx done * formatted * fixed rc and gripper pages * fixed updating frame type and class * fixed wording * gripperenabled * formatted * fixed tests and moved to is_gripper_enabled * updated flight modes on load * formatted
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.