Browse Source

change board name in DroneCAN for DB200

Andrew Tridgell 3 years ago
parent
commit
b4086b4a67
2 changed files with 5 additions and 0 deletions
  1. 3 0
      RemoteIDModule/DroneCAN.cpp
  2. 2 0
      RemoteIDModule/board_config.h

+ 3 - 0
RemoteIDModule/DroneCAN.cpp

@@ -3,6 +3,7 @@
   with thanks to David Buzz for ArduPilot ESP32 HAL
  */
 #include <Arduino.h>
+#include "board_config.h"
 #include "version.h"
 #include <time.h>
 #include "DroneCAN.h"
@@ -19,7 +20,9 @@
 #include <dronecan.remoteid.ArmStatus.h>
 
 #define BOARD_ID 10001
+#ifndef CAN_APP_NODE_NAME
 #define CAN_APP_NODE_NAME "ArduPilot RemoteIDModule"
+#endif
 #define CAN_DEFAULT_NODE_ID 0 // use DNA
 
 #define UNUSED(x) (void)(x)

+ 2 - 0
RemoteIDModule/board_config.h

@@ -25,6 +25,8 @@
 #define PIN_CAN_EN GPIO_NUM_4 // EN pin of the NXP CAN transceiver
 #define PIN_CAN_nSILENT GPIO_NUM_1 // CAN silent pin, active low
 
+#define CAN_APP_NODE_NAME "BlueMark DB200"
+
 // to enable termination resistors uncomment this line
 //#define PIN_CAN_TERM EN_NUM_10 // if set to ON, the termination resistors of the CAN bus are enabled