d/multi: propagate out_timestamp_ns

This commit is contained in:
Moses Turner 2021-11-29 23:18:07 -06:00
parent f5bc81756e
commit 80840c4f4a

View file

@ -138,15 +138,14 @@ get_hand_tracking(struct xrt_device *xdev,
{ {
struct multi_device *d = (struct multi_device *)xdev; struct multi_device *d = (struct multi_device *)xdev;
struct xrt_device *target = d->tracking_override.target; struct xrt_device *target = d->tracking_override.target;
uint64_t real_timestamp; xrt_device_get_hand_tracking(target, name, at_timestamp_ns, out_value, out_timestamp_ns);
xrt_device_get_hand_tracking(target, name, at_timestamp_ns, out_value, &real_timestamp);
if (!out_value->is_active) { if (!out_value->is_active) {
return; return;
} }
struct xrt_device *tracker = d->tracking_override.tracker; struct xrt_device *tracker = d->tracking_override.tracker;
struct xrt_space_relation tracker_relation; struct xrt_space_relation tracker_relation;
xrt_device_get_tracked_pose(tracker, d->tracking_override.input_name, real_timestamp, &tracker_relation); xrt_device_get_tracked_pose(tracker, d->tracking_override.input_name, *out_timestamp_ns, &tracker_relation);
switch (d->override_type) { switch (d->override_type) {