mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
Rover: use common system information logging
This commit is contained in:
parent
bbfe67fe2a
commit
b0c6a1fde7
@ -225,9 +225,6 @@ struct PACKED log_Startup {
|
||||
|
||||
void Rover::Log_Write_Startup(uint8_t type)
|
||||
{
|
||||
// Write all current parameters
|
||||
DataFlash.Log_Write_Parameters();
|
||||
|
||||
struct log_Startup pkt = {
|
||||
LOG_PACKET_HEADER_INIT(LOG_STARTUP_MSG),
|
||||
time_us : hal.scheduler->micros64(),
|
||||
@ -434,18 +431,8 @@ void Rover::start_logging()
|
||||
{
|
||||
in_mavlink_delay = true;
|
||||
DataFlash.StartNewLog();
|
||||
DataFlash.Log_Write_SysInfo(PSTR(FIRMWARE_STRING));
|
||||
in_mavlink_delay = false;
|
||||
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
|
||||
char sysid[40];
|
||||
if (hal.util->get_system_id(sysid)) {
|
||||
DataFlash.Log_Write_Message(sysid);
|
||||
}
|
||||
}
|
||||
|
||||
#else // LOGGING_ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user