GCS_MAVLink: send fw_string, px4 git hash and nuttx hash on param request

This commit is contained in:
Peter Barker 2017-08-19 20:42:19 +10:00 committed by Francisco Ferreira
parent a2132f7b72
commit 2e078f7c5e

View File

@ -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)) {