Remove bool return from update_tracking

This commit is contained in:
Patrick Nicolas
2026-01-29 09:51:59 +01:00
parent 3f58345cf0
commit 47d7322070
13 changed files with 25 additions and 42 deletions
+2 -3
View File
@@ -35,7 +35,6 @@ class pose_list
xrt_pose offset;
std::atomic_bool derive_forced = false;
std::mutex mutex;
XrTime last_request;
polynomial_interpolator<3> positions;
polynomial_interpolator<4, true> orientations;
@@ -49,7 +48,7 @@ public:
pose_list(wivrn::device_id id) :
device(id) {}
bool update_tracking(const wivrn::from_headset::tracking &, const clock_offset & offset);
void update_tracking(const wivrn::from_headset::tracking &, const clock_offset & offset);
void set_derived(pose_list * source, xrt_pose offset, bool force = false);
std::tuple<XrTime, xrt_space_relation, device_id> get_pose_at(XrTime at_timestamp_ns);
@@ -58,6 +57,6 @@ public:
std::pair<XrTime, xrt_space_relation> get_at(XrTime at_timestamp_ns);
private:
bool add_sample(XrTime production_timestamp, XrTime timestamp, const from_headset::tracking::pose & pose, const clock_offset & offset);
void add_sample(XrTime production_timestamp, XrTime timestamp, const from_headset::tracking::pose & pose, const clock_offset & offset);
};
} // namespace wivrn