Browse Source

change the name of hardware and software in log,change the log folder name

master
yaozb 5 years ago
parent
commit
daf0b288e7
  1. 1
      ArduCopter/Parameters.cpp
  2. 2
      ArduCopter/version.h
  3. 4
      libraries/AP_HAL/board/chibios.h

1
ArduCopter/Parameters.cpp

@ -1634,6 +1634,7 @@ const char* Copter::get_sysid_board_id(void) @@ -1634,6 +1634,7 @@ const char* Copter::get_sysid_board_id(void)
// snprintf(buf, sizeof(buf), "Version: zr-v4.0.1 ,Board ID: ZRZK.20QT2.%d",(int)nameValue2);
snprintf(buf, sizeof(buf), "Version: zr-v4.0.2 ,ID: RS100%04d%05d",(int)nameValue1,(int)nameValue2);
AP::logger().Write_Message(buf);
return buf;
}

2
ArduCopter/version.h

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#include "ap_version.h"
#define THISFIRMWARE "ArduCopter V4.0.0"
#define THISFIRMWARE "ZRUAV" //"ArduCopter V4.0.0"
// the following line is parsed by the autotest scripts
#define FIRMWARE_VERSION 4,0,0,FIRMWARE_VERSION_TYPE_OFFICIAL

4
libraries/AP_HAL/board/chibios.h

@ -93,7 +93,7 @@ @@ -93,7 +93,7 @@
// allow for short names overridden in hwdef.dat
#ifndef CHIBIOS_SHORT_BOARD_NAME
#define CHIBIOS_SHORT_BOARD_NAME CHIBIOS_BOARD_NAME
#define CHIBIOS_SHORT_BOARD_NAME "ZrHardWare"
#endif
#ifndef CONFIG_HAL_BOARD_SUBTYPE
@ -111,5 +111,5 @@ @@ -111,5 +111,5 @@
// put all storage of files under /APM directory
#ifndef HAL_BOARD_STORAGE_DIRECTORY
#define HAL_BOARD_STORAGE_DIRECTORY "/APM"
#define HAL_BOARD_STORAGE_DIRECTORY "/ZRUAV"
#endif

Loading…
Cancel
Save