mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.18k stars 3.53k forks source link

Connection to vehicle with new ELRS Mavlink-rc #11675

Closed xznhj8129 closed 5 days ago

xznhj8129 commented 1 month ago

Expected Behavior

Using the new Mavlink-rc feature of ELRS and newest INAV development branch https://github.com/iNavFlight/inav/tree/mmosca-mavlinkrc, Mavlink can now be used to control INAV flight controllers and return mavlink telemetry. When using mavproxy or APM, the GCS connect successfully to the vehicle and receives telemetry.

Current Behavior

QGC, when given the proper connection (/dev/ttyUSB0, baud rate 460800 as specified and verified working with mavproxy), does not connect, as if it did not see the connection or vehicle as valid.

Steps to Reproduce:

Please provide an unambiguous set of steps to reproduce the current behavior

  1. Install https://github.com/iNavFlight/inav/tree/mmosca-mavlinkrc branch to a flight controller
  2. Set up ELRS Mavlink-RC connection as specified here https://github.com/ExpressLRS/ExpressLRS/pull/2753
  3. Verify link is working using MP, APM or mavproxy
  4. Set up same connection in QGC, try to connect

System Information

When posting bug reports, include the following information

Detailed Description

Very experimental edge case but once solved could unlock additional capabilities for non-AP/PX4 UAV

xznhj8129 commented 1 month ago

The reason it's not working is that QGC expects MavComponentID to be MAV_COMP_ID_AUTOPILOT1, whereas in Inav: static uint8_t mavComponentId = MAV_COMP_ID_SYSTEM_CONTROL; I don't know why QGC doesn't even want to acknowledge the connection

khikmatovfarkhod commented 2 weeks ago

hello can we solve this issue please. i still cant connect px4 to qgc but the mavlink messages are showing up on my transmitter.

xznhj8129 commented 5 days ago

issue was fixed with further work on INAV mavlink telemetry implementation