Skip to content

If no FC is detected on the serial ports, try the network ports#730

Merged
amilcarlucas merged 1 commit into
masterfrom
implement_728
Aug 22, 2025
Merged

If no FC is detected on the serial ports, try the network ports#730
amilcarlucas merged 1 commit into
masterfrom
implement_728

Conversation

@amilcarlucas
Copy link
Copy Markdown
Collaborator

fix #728

Copilot AI review requested due to automatic review settings August 21, 2025 14:46
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 automatic fallback detection to network ports when no flight controller is detected on serial ports, addressing issue #728. The change improves the user experience by automatically trying standard ArduPilot UDP and TCP connections when serial port detection fails.

Key changes:

  • Extracts common connection logic into a reusable _register_and_try_connect method
  • Adds automatic network port detection as fallback when serial ports fail
  • Updates error messaging to reflect the expanded detection capabilities

Comment thread ardupilot_methodic_configurator/backend_flightcontroller.py
Comment thread ardupilot_methodic_configurator/backend_flightcontroller.py
@github-actions
Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
7968 6117 77% 73% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
ardupilot_methodic_configurator/backend_flightcontroller.py 41% 🟢
TOTAL 41% 🟢

updated for commit: 0f150cc by action🐍

@github-actions
Copy link
Copy Markdown
Contributor

Test Results

    2 files  ±0      2 suites  ±0   1m 19s ⏱️ ±0s
1 568 tests ±0  1 567 ✅ ±0  1 💤 ±0  0 ❌ ±0 
3 136 runs  ±0  3 134 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 0f150cc. ± Comparison against base commit 39a0add.

@amilcarlucas amilcarlucas merged commit a241c42 into master Aug 22, 2025
28 checks passed
@amilcarlucas amilcarlucas deleted the implement_728 branch August 22, 2025 13:32
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.

Not conecting to UDP/IP links

2 participants