xrt: Add tracking system type for Lighthouse

This commit is contained in:
Christoph Haag 2020-08-18 01:51:57 +02:00 committed by Jakob Bornecrantz
parent 8f46d42d90
commit 23bd6a4377
2 changed files with 4 additions and 0 deletions

View file

@ -1184,6 +1184,7 @@ survive_found(struct xrt_prober *xp,
printf("survive: Assuming variant %d\n", ss->variant);
ss->ctx = actx;
ss->base.type = XRT_TRACKING_TYPE_LIGHTHOUSE;
snprintf(ss->base.name, XRT_TRACKING_NAME_LEN, "%s",
"Libsurvive Tracking");
ss->base.offset.position.x = 0.0f;

View file

@ -45,6 +45,9 @@ enum xrt_tracking_type
// The device(s) are tracked by RGB camera(s).
XRT_TRACKING_TYPE_RGB,
// The device(s) are tracked by Ligthhouse
XRT_TRACKING_TYPE_LIGHTHOUSE,
};
/*!