Repository navigation
Conversation
This branch has not been deployed
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.
Route External RF module over USB-VCP
Adds "External module" as an USB-VCP option. When it's selected, the External RF protocol driver (CRSF, MAVLink, …) uses the USB serial port instead of the module bay. A PC can then act as a module with selected protocol, both extracting channel values from packets and sending back telemetry.
It should be useful for integration with GCS software or simulators:
Usage: Radio Setup → Hardware → USB-VCP →
External module, then pick the protocol under Model → External RF as usual.Changes
module_port: when VCP is inUART_MODE_EXT_MODULE, the external module's serial port lookup returns a full-duplex USB port.usbd_cdc: implements the serial driver calls the module drivers need (sendBuffer,txCompleted, RX buffer copy/clear, idle callback,getBufferedBytes), with guards for when no host is connected.serial: VCP is included ininitSerialPorts(), and switching it to this mode restarts the external module pulses.gui_common: the mode is selectable on VCP even on radios without a spare UART for an external module.