t/psmv: Expose ball last position to debug gui

This commit is contained in:
Jakob Bornecrantz 2019-11-10 01:35:54 +00:00
parent 47bc4de56d
commit c6e6ba7485

View file

@ -642,6 +642,7 @@ t_psmv_create(struct xrt_frame_context *xfctx,
// Everything is safe, now setup the variable tracking.
u_var_add_root(&t, "PSMV Tracker", true);
u_var_add_vec3_f32(&t, &t.tracked_object_position, "last.ball.pos");
u_var_add_sink(&t, &t.debug.sink, "Debug");
*out_sink = &t.sink;