If Mavlink vehicle has configured different SYSID_THISMAV than default value of 1, RC link for Mavlink RC serial does not work, Mavlink telemetry works.
Steps to Reproduce
Configure ELRS for Mavlink serial communication with parameter Link Mode: MAVLink
E.g. for the fixed wing plane with Ardupilot FW v4.5.5 configure ELRS RC for Mavlnik 2, with parameters:
SERIAL1_PROTOCOL, 2 # MAVLink2SERIAL1_BAUD,460RSSI_TYPE, 3 #TelemetryRadioRSSI
Set vehicle parameter _SYSIDTHISMAV to value different than default 1, e.g. 10:
SYSID_THISMAV, 10
SerialMavlink::SerialMavlink(Stream &out, Stream &in):
SerialIO(&out, &in),
// 255 is typically used by the GCS, for RC override to work in ArduPilot `SYSID_MYGCS` must be set to this value (255 is the default)
this_system_id(255),
// Strictly this is not a valid source component ID
this_component_id(MAV_COMPONENT::MAV_COMP_ID_ALL),
// Assume vehicle system ID is 1, ArduPilot's `SYSID_THISMAV` parameter. (1 is the default)
target_system_id(1),
// Send to AutoPilot component
target_component_id(MAV_COMPONENT::MAV_COMP_ID_AUTOPILOT1)
{
}
Details
Your Environment
TX hardware: HM ES24TX
RX hardware: HM EP1
Handset model: Radiomaster TX16S
ExpressLRS version (TX & RX MUST MATCH): master ISM2G4 d9f56f
Current Behavior
If Mavlink vehicle has configured different SYSID_THISMAV than default value of 1, RC link for Mavlink RC serial does not work, Mavlink telemetry works.
Steps to Reproduce
Configure ELRS for Mavlink serial communication with parameter Link Mode: MAVLink
E.g. for the fixed wing plane with Ardupilot FW v4.5.5 configure ELRS RC for Mavlnik 2, with parameters:
SERIAL1_PROTOCOL, 2 # MAVLink2
SERIAL1_BAUD,460
RSSI_TYPE, 3 #TelemetryRadioRSSI
Set vehicle parameter _SYSIDTHISMAV to value different than default 1, e.g. 10:
SYSID_THISMAV, 10
Possible Solution (Not obligatory)
It would be nice to have possibility to configure _SYSIDTHISMAV parameter value for ELRS, see line: https://github.com/ExpressLRS/ExpressLRS/blob/master/src/src/rx-serial/SerialMavlink.cpp#L57 Full code from
src/src/rx-serial/SerialMavlink.cpp
:Details
Your Environment