Skip to content

Commit

Permalink
Retrofit IMU HW Timestamp to L500.
Browse files Browse the repository at this point in the history
Remove debug code

Change-Id: I3cfd18db63f64f1ba1c502e56da98c8991512007
  • Loading branch information
ev-mp committed Jun 2, 2019
1 parent fd8c8ee commit 7039efd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/l500/l500-motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ namespace librealsense
{
_motion_module_device_idx = add_sensor(hid_ep);
}

// HID metadata attributes
hid_ep->register_metadata(RS2_FRAME_METADATA_FRAME_TIMESTAMP, make_hid_header_parser(&platform::hid_header::timestamp));
}

std::vector<tagged_profile> l500_motion::get_profiles_tags() const
Expand Down
7 changes: 0 additions & 7 deletions src/mf/mf-hid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ namespace librealsense
auto customTimestampHigh = var.ulVal;

// Parse additional custom fields
//std::vector<unsigned long> props;
/*CHECK_HR(report->GetSensorValue(SENSOR_DATA_TYPE_CUSTOM_VALUE3, &var));
props.push_back(var.ulVal);
CHECK_HR(report->GetSensorValue(SENSOR_DATA_TYPE_CUSTOM_VALUE4, &var));
props.push_back(var.ulVal);
CHECK_HR(report->GetSensorValue(SENSOR_DATA_TYPE_CUSTOM_VALUE5, &var));
props.push_back(var.ulVal);*/
CHECK_HR(report->GetSensorValue(SENSOR_DATA_TYPE_CUSTOM_VALUE6, &var));
uint8_t imu_count = var.bVal;
CHECK_HR(report->GetSensorValue(SENSOR_DATA_TYPE_CUSTOM_VALUE7, &var));
Expand Down

0 comments on commit 7039efd

Please sign in to comment.