From 2e078f7c5e19e471707ef88d6d4f44ce4e1b87cc Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 19 Aug 2017 20:42:19 +1000 Subject: [PATCH] GCS_MAVLink: send fw_string, px4 git hash and nuttx hash on param request --- libraries/GCS_MAVLink/GCS_Param.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS_Param.cpp b/libraries/GCS_MAVLink/GCS_Param.cpp index f598aa2e6d..82c72592ab 100644 --- a/libraries/GCS_MAVLink/GCS_Param.cpp +++ b/libraries/GCS_MAVLink/GCS_Param.cpp @@ -191,6 +191,14 @@ void GCS_MAVLINK::handle_param_request_list(mavlink_message_t *msg) mavlink_param_request_list_t packet; mavlink_msg_param_request_list_decode(msg, &packet); + // mark the firmware version in the tlog + const AP_FWVersion &fwver = get_fwver(); + send_text(MAV_SEVERITY_INFO, fwver.fw_string); + +#if defined(PX4_GIT_VERSION) && defined(NUTTX_GIT_VERSION) + send_text(MAV_SEVERITY_INFO, "PX4: " PX4_GIT_VERSION " NuttX: " NUTTX_GIT_VERSION); +#endif + // send system ID if we can char sysid[40]; if (hal.util->get_system_id(sysid)) {