-
Notifications
You must be signed in to change notification settings - Fork 26
Initial work on RPM telemetry #145
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
base: master
Are you sure you want to change the base?
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
5e5df5a
to
66a6db1
Compare
Test Results 2 files 2 suites 1m 28s ⏱️ Results for commit aa529f6. ♻️ This comment has been updated with latest results. |
66a6db1
to
aa529f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This PR introduces initial RPM telemetry support to the ESC components in the telemetry configuration. Key changes include:
- Adding a new localization string for "RPM Telemetry" in the UI.
- Updating JSON data to support new "RPM Telemetry" fields for ESC.
- Modifying the ESC protocol combobox entries to incorporate RPM telemetry connection and protocol options.
Reviewed Changes
File | Description |
---|---|
ardupilot_methodic_configurator/frontend_tkinter_component_editor.py | Added RPM telemetry string, JSON update block, and updated combobox logic for RPM telemetry |
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
ardupilot_methodic_configurator/frontend_tkinter_component_editor.py:261
- [nitpick] The variable '_vehicle_components_strings' is overwritten multiple times with different values; if its purpose is solely to register strings for localization, consider adding a comment or using distinct variables for clarity.
_vehicle_components_strings = _("RPM Telemetry")
ardupilot_methodic_configurator/frontend_tkinter_component_editor.py:309
- The block updating the 'ESC' RPM Telemetry fields appears to duplicate similar logic that may already exist in the codebase; verify if this duplication is intentional or if it should be consolidated to avoid redundant processing.
# To update old JSON files that do not have these new
ardupilot_methodic_configurator/frontend_tkinter_component_editor.py:514
- [nitpick] Similar assignments to 'rpm_connections' occur in multiple branches; consider refactoring this repetitive logic into a helper function to improve maintainability.
rpm_connections = ["None", "I/O Only", *serial_ports, *can_ports]
Will later be used to make parameter value decisions