AP_ExternalAHRS: Specify brand on all log messages

* The VN driver was likely written before there were multiple types
* The log messages make it seem like core AHRS problems rather than
  issues directly with VN

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
Ryan Friedman 2023-11-10 23:01:10 -07:00 committed by Andrew Tridgell
parent 0f0bc78de9
commit ef6105c5e0
1 changed files with 4 additions and 4 deletions

View File

@ -176,7 +176,7 @@ AP_ExternalAHRS_VectorNav::AP_ExternalAHRS_VectorNav(AP_ExternalAHRS *_frontend,
auto &sm = AP::serialmanager(); auto &sm = AP::serialmanager();
uart = sm.find_serial(AP_SerialManager::SerialProtocol_AHRS, 0); uart = sm.find_serial(AP_SerialManager::SerialProtocol_AHRS, 0);
if (!uart) { if (!uart) {
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "ExternalAHRS no UART"); GCS_SEND_TEXT(MAV_SEVERITY_INFO, "VectorNav ExternalAHRS no UART");
return; return;
} }
baudrate = sm.find_baudrate(AP_SerialManager::SerialProtocol_AHRS, 0); baudrate = sm.find_baudrate(AP_SerialManager::SerialProtocol_AHRS, 0);
@ -188,13 +188,13 @@ AP_ExternalAHRS_VectorNav::AP_ExternalAHRS_VectorNav(AP_ExternalAHRS *_frontend,
last_pkt2 = new VN_packet2; last_pkt2 = new VN_packet2;
if (!pktbuf || !last_pkt1 || !last_pkt2) { if (!pktbuf || !last_pkt1 || !last_pkt2) {
AP_BoardConfig::allocation_error("ExternalAHRS"); AP_BoardConfig::allocation_error("VectorNav ExternalAHRS");
} }
if (!hal.scheduler->thread_create(FUNCTOR_BIND_MEMBER(&AP_ExternalAHRS_VectorNav::update_thread, void), "AHRS", 2048, AP_HAL::Scheduler::PRIORITY_SPI, 0)) { if (!hal.scheduler->thread_create(FUNCTOR_BIND_MEMBER(&AP_ExternalAHRS_VectorNav::update_thread, void), "AHRS", 2048, AP_HAL::Scheduler::PRIORITY_SPI, 0)) {
AP_HAL::panic("Failed to start ExternalAHRS update thread"); AP_HAL::panic("VectorNav Failed to start ExternalAHRS update thread");
} }
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "ExternalAHRS initialised"); GCS_SEND_TEXT(MAV_SEVERITY_INFO, "VectorNav ExternalAHRS initialised");
} }
/* /*