Browse Source

Plane: log PX4Firmware and NuttX git revisions in logs

mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
91cc08a3ef
  1. 4
      ArduPlane/GCS_Mavlink.pde
  2. 3
      ArduPlane/Log.pde

4
ArduPlane/GCS_Mavlink.pde

@ -1519,6 +1519,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
// mark the firmware version in the tlog // mark the firmware version in the tlog
send_text_P(SEVERITY_LOW, PSTR(FIRMWARE_STRING)); send_text_P(SEVERITY_LOW, PSTR(FIRMWARE_STRING));
#if defined(PX4_GIT_VERSION) && defined(NUTTX_GIT_VERSION)
send_text_P(SEVERITY_LOW, PSTR("PX4: " PX4_GIT_VERSION " NuttX: " NUTTX_GIT_VERSION));
#endif
// send system ID if we can // send system ID if we can
char sysid[40]; char sysid[40];
if (hal.util->get_system_id(sysid)) { if (hal.util->get_system_id(sysid)) {

3
ArduPlane/Log.pde

@ -569,6 +569,9 @@ static void start_logging()
{ {
DataFlash.StartNewLog(); DataFlash.StartNewLog();
DataFlash.Log_Write_Message_P(PSTR(FIRMWARE_STRING)); DataFlash.Log_Write_Message_P(PSTR(FIRMWARE_STRING));
#if defined(PX4_GIT_VERSION) && defined(NUTTX_GIT_VERSION)
DataFlash.Log_Write_Message_P(PSTR("PX4: " PX4_GIT_VERSION " NuttX: " NUTTX_GIT_VERSION));
#endif
// write system identifier as well if available // write system identifier as well if available
char sysid[40]; char sysid[40];

Loading…
Cancel
Save