Skip to content

[WIP] Add support for Mavlink over handset CRSF #2841

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 8 commits into
base: master
Choose a base branch
from

Conversation

LupusTheCanine
Copy link
Contributor

Support for sending Mavlink to handset over CRSF as well as receiving mavlink over CRSF from handset allowing almost native support for telemetry and GCS scripts (after switching from Yaapu's "mavlite" to full mavlink).

TODO

Requires EdgeTX/edgetx#5243 for operation as EdgeTX can freeze due to a bug in CRSF processing.
I need help with adding configuration.
I was thinking about using link mode to indicate if Mavlink should be sent and accepted over CRSF.

@LupusTheCanine LupusTheCanine marked this pull request as draft July 13, 2024 22:45
mavlink_status_t status;
for(uint8_t i=0; i<size;i++)
{
if(mavlink_parse_char(MAVLINK_COMM_1,SerialInBuffer[4+i],&msg,&status))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This use of MAVLINK_COMM_1 will mean we need to bump MAVLINK_COMM_NUM_BUFFERS to 2. #2846

* Added config option for runtime enabling/disabling MAVLink over CRSF
* Added compile time option to set custom source and destination system id
    TX_SYSID (source system ID)
    RX_SYSID (target system ID)
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.

2 participants