Skip to content

Send heartbeat message to AP #195

@error414

Description

@error414

Hardware

  • Nano
  • UAV
Image

Firmware version

Image

Firmware settings

Image

Describe the bug

SoftRf UAV does not send mavlink heartbeat message to AP. It's a nice standart to send HB message to tell AP, I'm here. Many others ADSB devices send HB to AP, like picoADSB, TT-SC1, adsbee1090. Inav use HB for detection if ADSB device is connected. The information is shown in INAV OSD, so pilot can check if ADSB device works properly.

To Reproduce

Connect softRf to any AP and check if AP receives any HB mavlink message

Expected behavior

if softRf receives HB then softRf should send HB back with correct parameters, MAV_TYPE_ADSB MAV_AUTOPILOT_INVALID

for example:

 mavlink_msg_heartbeat_pack(
        1,                      // system_id
        MAV_COMP_ID_ADSB,       // component_id = 156 (ADS-B component)
        &msg,
        MAV_TYPE_ADSB,          // type = 23, ADS-B device
        MAV_AUTOPILOT_INVALID,  // autopilot = 8, NOT a flight controller
        0,                      // base_mode
        0,                      // custom_mode
        MAV_STATE_ACTIVE        // system_status = 4, device is active
    );

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions