Skip to content

on chip calibration bug fixes - #6097

Merged
dorodnic merged 5 commits into
realsenseai:developmentfrom
aseelegbaria:development
Mar 25, 2020
Merged

on chip calibration bug fixes#6097
dorodnic merged 5 commits into
realsenseai:developmentfrom
aseelegbaria:development

Conversation

@aseelegbaria

@aseelegbaria aseelegbaria commented Mar 19, 2020

Copy link
Copy Markdown
Contributor
  1. OCC health check error for values <0 is now based on error magnitude.
  2. On-Chip cal More Options, White Wall is set as default for D415
  3. Tare-cal, The Avg step default values when you hover on the name are now compatible with the number shown (20).
  4. Tare is set to last value the user typed.
  5. Error messages is shifted slightly to the left and the box is bigger.
  6. Progress bar during Tare is updated
    DSO-14650

Comment thread common/on-chip-calib.cpp Outdated
catch (...) {}
}


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed

Comment thread common/on-chip-calib.cpp Outdated
_in_3d_view = _viewer.is_3d_view;
_viewer.is_3d_view = true;

config_file::instance().set(configurations::viewer::ground_truth_r, ground_truth);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use spaces instead of tabs

Comment thread common/on-chip-calib.cpp Outdated
_viewer.is_3d_view = true;

config_file::instance().set(configurations::viewer::ground_truth_r, ground_truth);
//ground_truth = _viewer.ground_truth_r;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out code should not be checked-in

Comment thread common/on-chip-calib.cpp Outdated
_viewer.is_3d_view = _in_3d_view;

_viewer.ground_truth_r = ground_truth;
config_file::instance().set(configurations::viewer::ground_truth_r, ground_truth);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tabs

Comment thread common/on-chip-calib.cpp Outdated

auto health = get_manager().get_health();
auto recommend_keep = health > 0.25;
auto recommend_keep = health > 0.25 || health < -0.25;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use fabs(health) > 0.25f, it's better

Comment thread common/ux-window.cpp Outdated
config_file::instance().set_default(configurations::viewer::log_to_file, false);
config_file::instance().set_default(configurations::viewer::log_severity, 2);
config_file::instance().set_default(configurations::viewer::metric_system, true);
config_file::instance().set_default(configurations::viewer::ground_truth_r, 2500);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tabs

Comment thread common/viewer.cpp Outdated
is_3d_view = config_file::instance().get_or_default(
configurations::viewer::is_3d_view, false);

ground_truth_r = config_file::instance().get_or_default(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tabs

Comment thread common/viewer.h Outdated
bool paused = false;
bool metric_system = true;

uint32_t ground_truth_r = 2500;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, to save the last value the user typed in tare calibration.

Comment thread src/ds5/ds5-auto-calibration.cpp Outdated
int data_sampling = DEFAULT_SAMPLING;
int apply_preset = 1;


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra line

Comment thread src/hw-monitor.cpp Outdated
{
auto err_type = static_cast<hwmon_response>(opCodeAsUint32);
throw invalid_value_exception(to_string() << "hwmon command 0x" << std::hex << opCodeXmit << " failed. Error type: "
throw invalid_value_exception(to_string() << "hwmon command 0x" << std::hex << opCodeXmit << " failed.\n Error type: "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space after \n is not needed

@dorodnic

Copy link
Copy Markdown
Contributor

Nicely done. Please update pull-request title and add description with the list of fixes and a DSO number

@aseelegbaria aseelegbaria changed the title occ on chip calibration bug fixes Mar 25, 2020
@dorodnic
dorodnic merged commit 603ce9e into realsenseai:development Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants