Skip to content

Commit

Permalink
AC1: -> CAH:, and a warning on unsuccessful calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Jun 24, 2020
1 parent caf395e commit 644ea80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/algo/depth-to-rgb-calibration/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 ))
Expand Down
7 changes: 5 additions & 2 deletions src/l500/ac-trigger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] << "- ";
Expand Down Expand Up @@ -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() )
Expand Down

0 comments on commit 644ea80

Please sign in to comment.