Skip to content

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Initial work on RPM telemetry #145

wants to merge 1 commit into from

Conversation

amilcarlucas
Copy link
Collaborator

Will later be used to make parameter value decisions

Copy link
Contributor

github-actions bot commented Feb 9, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
5534 2675 48% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
ardupilot_methodic_configurator/frontend_tkinter_component_editor.py 12% 🟢
TOTAL 12% 🟢

updated for commit: aa529f6 by action🐍

Copy link
Contributor

github-actions bot commented Feb 21, 2025

Test Results

  2 files    2 suites   1m 28s ⏱️
409 tests 408 ✅ 1 💤 0 ❌
818 runs  816 ✅ 2 💤 0 ❌

Results for commit aa529f6.

♻️ This comment has been updated with latest results.

Copy link

@Copilot 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.

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]

@amilcarlucas amilcarlucas marked this pull request as draft March 6, 2025 10:49
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.

1 participant