Skip to content

Conversation

@aseelegbaria
Copy link
Contributor

@aseelegbaria aseelegbaria commented Mar 19, 2020

  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

catch (...) {}
}


Copy link
Contributor

Choose a reason for hiding this comment

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

Not needed

_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
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

_viewer.is_3d_view = true;

config_file::instance().set(configurations::viewer::ground_truth_r, ground_truth);
//ground_truth = _viewer.ground_truth_r;
Copy link
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

_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
Contributor

Choose a reason for hiding this comment

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

Tabs


auto health = get_manager().get_health();
auto recommend_keep = health > 0.25;
auto recommend_keep = health > 0.25 || health < -0.25;
Copy link
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

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
Contributor

Choose a reason for hiding this comment

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

Tabs

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
Contributor

Choose a reason for hiding this comment

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

Tabs

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

uint32_t ground_truth_r = 2500;
Copy link
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
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.

int data_sampling = DEFAULT_SAMPLING;
int apply_preset = 1;


Copy link
Contributor

Choose a reason for hiding this comment

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

Extra line

{
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
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
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 IntelRealSense: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