Estimate clock speed difference

This commit is contained in:
Patrick Nicolas
2024-02-16 22:02:57 +01:00
parent ed6cac545e
commit c3e2cd0cb8
10 changed files with 197 additions and 173 deletions
+2 -7
View File
@@ -20,7 +20,6 @@
#pragma once
#include "clock_offset.h"
#include "offset_estimator.h"
#include "wivrn_connection.h"
#include "wivrn_packets.h"
#include "xrt/xrt_system.h"
@@ -51,16 +50,13 @@ class wivrn_session : public std::enable_shared_from_this<wivrn_session>
std::atomic<bool> quit = false;
std::thread thread;
std::mutex mutex;
std::unique_ptr<wivrn_hmd> hmd;
std::unique_ptr<wivrn_controller> left_hand;
std::unique_ptr<wivrn_controller> right_hand;
wivrn_comp_target * comp_target;
clock_offset offset;
offset_estimator offset_est;
std::chrono::steady_clock::time_point offset_expiration{};
clock_offset_estimator offset_est;
std::mutex csv_mutex;
std::ofstream feedback_csv;
@@ -76,8 +72,7 @@ public:
xrt_space_overseer ** out_xspovrs,
xrt_system_compositor ** out_xsysc);
clock_offset
get_offset();
clock_offset get_offset();
void operator()(from_headset::handshake&&) {}
void operator()(from_headset::headset_info_packet &&);