NexusX(R) swap rx/tx pins for port A, B, C if configured as CRSF receiver#11423
NexusX(R) swap rx/tx pins for port A, B, C if configured as CRSF receiver#11423wimalopaan wants to merge 2 commits intoiNavFlight:masterfrom
Conversation
Branch Targeting SuggestionYou've targeted the
If This is an automated suggestion to help route contributions to the appropriate branch. |
|
The PR is only compatible with RM PWM-ELRS receivers on the NEXUS-X. Why would you do that? The NEXUS-X has 9 PWM ports. Furthermore, the current pinout works perfectly if you plan to use simple ELRS receivers and RM ERS sensors. |
Do you know the Radiomaster RP3-H? This receiver fits perfectly to the NexusX(R) because it has also a JST-GH jack. So, this pair is a perfect one. And this thing doesn't affect ERS sensors: Only CRSF receiver ports. |
|
Instead of writing a PR that renders all existing installations obsolete, I’d prefer a swap option in the receiver settings when ELRS is enabled. THEN it would work for everyone... |
Sure, maybe I extend this PR ... |
|
Agreed, a setting that could be used by anyone who wants to swap any uart pins on any FC could be useful. That could replace the existing defines: Forcing the pins to swap (suddenly become wrong) on one specific target so that it happens to match one specific receiver doesn't make sense to me. |
This is for NexusX(R) target only.
The NexusX(R) has three JST-GH ports labeled A, B, C.
These ports have the same pinout (tx, rx, Vcc, Gnd) as the ELRS receivers. If one connects the receiver with a 1:1 JST-GH cable (that Radiomaster used to include in the package), this cannot work. Instead a cable with tx/rx crossed is needed. This is very annoying.
This PR swaps the rx/tx pins of ports A, B, C if they are configured as Serial RX using CRSF. Therefore, users can use the standard 1:1 JST-GH cable that most vendors include in the shipping (if the receiver as a JST-GH port).