Skip to content

Commit

Permalink
Merge pull request #5627 from arilowen/remove-50fps-hid-profiles
Browse files Browse the repository at this point in the history
remove accel 50fps profile
  • Loading branch information
dorodnic authored Jan 16, 2020
2 parents 18c95b9 + 950b923 commit cf2f208
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/l500/l500-motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ namespace librealsense
{{ "HID Sensor Class Device: Gyroscope", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_GYRO, 0, 1, 1, 100 }},
{ "HID Sensor Class Device: Gyroscope", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_GYRO, 0, 1, 1, 200 }},
{ "HID Sensor Class Device: Gyroscope", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_GYRO, 0, 1, 1, 400 }},
{ "HID Sensor Class Device: Accelerometer", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_ACCEL, 0, 1, 1, 50 }},
{ "HID Sensor Class Device: Accelerometer", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_ACCEL, 0, 1, 1, 100 }},
{ "HID Sensor Class Device: Accelerometer", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_ACCEL, 0, 1, 1, 200 }},
{ "HID Sensor Class Device: Accelerometer", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_ACCEL, 0, 1, 1, 400 }}};

// Translate frequency to SENSOR_PROPERTY_CURRENT_REPORT_INTERVAL
std::map<rs2_stream, std::map<unsigned, unsigned>> l500_fps_and_sampling_frequency_per_rs2_stream =
{ {RS2_STREAM_ACCEL,{{50, 2000},
{100, 1000},
{ {RS2_STREAM_ACCEL,{{100, 1000},
{200, 500},
{400, 250}}},
{RS2_STREAM_GYRO, {{100, 1000},
Expand All @@ -35,15 +33,13 @@ namespace librealsense
{{ "gyro_3d", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_GYRO, 0, 1, 1, 100 }},
{ "gyro_3d", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_GYRO, 0, 1, 1, 200 }},
{ "gyro_3d", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_GYRO, 0, 1, 1, 400 }},
{ "accel_3d", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_ACCEL, 0, 1, 1, 50 }},
{ "accel_3d", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_ACCEL, 0, 1, 1, 100 }},
{ "accel_3d", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_ACCEL, 0, 1, 1, 200 }},
{ "accel_3d", { RS2_FORMAT_MOTION_XYZ32F, RS2_STREAM_ACCEL, 0, 1, 1, 400 }}};

// The frequency selector is vendor and model-specific
std::map<rs2_stream, std::map<unsigned, unsigned>> l500_fps_and_sampling_frequency_per_rs2_stream =
{ {RS2_STREAM_ACCEL,{{50, 1},
{100, 1},
{ {RS2_STREAM_ACCEL,{{100, 1},
{200, 2},
{400, 4}}},
{RS2_STREAM_GYRO, {{100, 1},
Expand Down

0 comments on commit cf2f208

Please sign in to comment.