Rebase almost everything to Master

This commit is contained in:
Vindicus999
2025-09-25 09:16:54 -04:00
parent 492ed88ae2
commit cf3c364b42
129 changed files with 13067 additions and 4431 deletions
+6 -4
View File
@@ -124,8 +124,6 @@ wivrn_generic_tracker::wivrn_generic_tracker(int index, xrt_device * hmd, wivrn_
cnx(cnx),
index(index)
{
xrt_device_init(static_cast<xrt_device *>(this));
auto unique_name = std::format("WiVRn Generic Tracker #{}", index + 1);
strlcpy(str, unique_name.c_str(), std::size(str));
auto unique_serial = std::format("wivrn-{}", index + 1);
@@ -150,7 +148,8 @@ xrt_result_t wivrn_generic_tracker::get_tracked_pose(xrt_input_name name, int64_
{
std::tie(extrapolation_time, *res) = poses.get_pose_at(at_timestamp_ns);
cnx.set_tracker_enabled(index, true);
active = true;
cnx.update_tracker_enabled();
cnx.add_predict_offset(extrapolation_time);
return XRT_SUCCESS;
}
@@ -162,6 +161,9 @@ xrt_result_t wivrn_generic_tracker::get_tracked_pose(xrt_input_name name, int64_
void wivrn_generic_tracker::update_tracking(const from_headset::body_tracking & tracking, const from_headset::body_tracking::pose & pose, const clock_offset & offset)
{
if (!poses.update_tracking(tracking.production_timestamp, tracking.timestamp, pose, offset))
cnx.set_tracker_enabled(index, false);
{
active = false;
cnx.update_tracker_enabled();
}
}
} // namespace wivrn