Put not requested tracking on standby

This commit is contained in:
Patrick Nicolas
2024-09-03 23:34:23 +02:00
parent 843a83761a
commit 96bbfa1a23
17 changed files with 178 additions and 51 deletions
+3 -2
View File
@@ -118,12 +118,13 @@ static xrt_hand_joint_set convert_joints(const std::optional<std::array<from_hea
return output_joints;
}
void hand_joints_list::update_tracking(const from_headset::hand_tracking & tracking, const clock_offset & offset)
bool hand_joints_list::update_tracking(const from_headset::hand_tracking & tracking, const clock_offset & offset)
{
if (tracking.hand == hand_id)
add_sample(
return add_sample(
tracking.production_timestamp,
tracking.timestamp,
convert_joints(tracking.joints),
offset);
return true;
}