The open source OpenXR runtime

d/illixr: Update ILLIXR driver.

authored by

Jae Lee and committed by
Jakob Bornecrantz
df9ebf26 27f872fd

+3 -16
+2 -15
src/xrt/drivers/illixr/illixr_component.cpp
··· 24 24 { 25 25 public: 26 26 illixr_plugin(std::string name_, phonebook *pb_) 27 - : plugin{name_, pb_}, sb{pb->lookup_impl<switchboard>()}, sb_pose{pb->lookup_impl<pose_prediction>()}, 28 - sb_eyebuffer{sb->publish<rendered_frame>("eyebuffer")}, sb_vsync_estimate{sb->subscribe_latest<time_type>( 29 - "vsync_estimate")} 27 + : plugin{name_, pb_}, sb{pb->lookup_impl<switchboard>()}, sb_pose{pb->lookup_impl<pose_prediction>()} 30 28 {} 31 29 32 30 const std::shared_ptr<switchboard> sb; 33 31 const std::shared_ptr<pose_prediction> sb_pose; 34 - const std::unique_ptr<writer<rendered_frame>> sb_eyebuffer; 35 - const std::unique_ptr<reader_latest<time_type>> sb_vsync_estimate; 36 - fast_pose_type prev_pose; /* stores a copy of pose each time 37 - illixr_read_pose() is called */ 38 - std::chrono::time_point<std::chrono::system_clock> sample_time; /* when prev_pose was stored */ 39 32 }; 40 33 41 34 static illixr_plugin *illixr_plugin_obj = nullptr; ··· 60 53 const fast_pose_type fast_pose = illixr_plugin_obj->sb_pose->get_fast_pose(); 61 54 const pose_type pose = fast_pose.pose; 62 55 63 - // record when the pose was read for use in write_frame 64 - illixr_plugin_obj->sample_time = std::chrono::system_clock::now(); 65 - 66 56 ret.orientation.x = pose.orientation.x(); 67 57 ret.orientation.y = pose.orientation.y(); 68 58 ret.orientation.z = pose.orientation.z(); ··· 71 61 ret.position.y = pose.position.y(); 72 62 ret.position.z = pose.position.z(); 73 63 74 - // store pose in static variable for use in write_frame 75 - illixr_plugin_obj->prev_pose = fast_pose; // copy member variables 76 - 77 64 return ret; 78 - } 65 + }
+1 -1
src/xrt/drivers/illixr/illixr_prober.c
··· 62 62 illixr_create_auto_prober() 63 63 { 64 64 struct illixr_prober *dp = U_TYPED_CALLOC(struct illixr_prober); 65 - dp->base.name = "IlliXR"; 65 + dp->base.name = "ILLIXR"; 66 66 dp->base.destroy = illixr_prober_destroy; 67 67 dp->base.lelo_dallas_autoprobe = illixr_prober_autoprobe; 68 68