diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-03 10:34:27 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-03 10:34:27 +0200 |
commit | 3d01da35d02505e751536e2cc09637797b37bed6 (patch) | |
tree | 2b1a9dbd7e9d1882115b1479be2ed04630710ec1 /src/modules/mavlink | |
parent | e5650df321a103f56f607a19df94d12825c00e42 (diff) | |
download | px4-firmware-3d01da35d02505e751536e2cc09637797b37bed6.tar.gz px4-firmware-3d01da35d02505e751536e2cc09637797b37bed6.tar.bz2 px4-firmware-3d01da35d02505e751536e2cc09637797b37bed6.zip |
write sysid & compid to telemetry status
Diffstat (limited to 'src/modules/mavlink')
-rw-r--r-- | src/modules/mavlink/mavlink_receiver.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 1115304d4..43222880e 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -534,6 +534,8 @@ MavlinkReceiver::handle_message_radio_status(mavlink_message_t *msg) tstatus.remote_noise = rstatus.remnoise; tstatus.rxerrors = rstatus.rxerrors; tstatus.fixed = rstatus.fixed; + tstatus.system_id = msg->sysid; + tstatus.component_id = msg->compid; if (_telemetry_status_pub < 0) { _telemetry_status_pub = orb_advertise(telemetry_status_orb_id[_mavlink->get_channel()], &tstatus); |