From 644ea80b46e59b1d55e556909b53c0abeddb6f3f Mon Sep 17 00:00:00 2001 From: Eran Date: Wed, 24 Jun 2020 08:14:54 +0300 Subject: [PATCH] AC1: -> CAH:, and a warning on unsuccessful calibration --- src/algo/depth-to-rgb-calibration/debug.h | 2 +- src/l500/ac-trigger.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/algo/depth-to-rgb-calibration/debug.h b/src/algo/depth-to-rgb-calibration/debug.h index 6a677d22c7..e5ffbe698e 100644 --- a/src/algo/depth-to-rgb-calibration/debug.h +++ b/src/algo/depth-to-rgb-calibration/debug.h @@ -11,7 +11,7 @@ #define AC_D_PREC std::setprecision( std::numeric_limits< double >::max_digits10 ) -#define AC_LOG_PREFIX "AC1: " +#define AC_LOG_PREFIX "CAH: " #define AC_LOG_PREFIX_LEN 5 #define AC_LOG(TYPE,MSG) LOG_##TYPE( AC_LOG_PREFIX << (std::string)( librealsense::to_string() << MSG )) diff --git a/src/l500/ac-trigger.cpp b/src/l500/ac-trigger.cpp index 0be7c0cd67..f9a116738b 100644 --- a/src/l500/ac-trigger.cpp +++ b/src/l500/ac-trigger.cpp @@ -351,7 +351,7 @@ namespace ivcam2 { { log_message const & wrapper = (log_message const &)(msg); char const * raw = wrapper.el_msg.message().c_str(); - if( strncmp( "AC1: ", raw, 5 ) ) + if( strncmp( AC_LOG_PREFIX, raw, AC_LOG_PREFIX_LEN ) ) return; std::ostringstream ss; ss << "-" << "DIWE"[severity] << "- "; @@ -741,7 +741,10 @@ namespace ivcam2 { { // We get here when we've reached some final state (failed/successful) _n_cycles = 0; // now inactive - AC_LOG( INFO, "Camera Accuracy Health has finished" ); + if( _last_status_sent != RS2_CALIBRATION_SUCCESSFUL ) + AC_LOG( WARNING, "Camera Accuracy Health has finished unsuccessfully" ); + else + AC_LOG( INFO, "Camera Accuracy Health has finished" ); // Trigger the next AC -- but only if we're "on", meaning this wasn't a manual calibration if( !auto_calibration_is_on() )