Commit graph

5925 commits

Author SHA1 Message Date
Jakob Bornecrantz 4363f02a22 doc: Document !1865 2023-06-21 22:05:14 +00:00
Jakob Bornecrantz e466551db0 st/oxr: Use common helper versions of truncating Xprintf 2023-06-21 22:05:14 +00:00
Jakob Bornecrantz b33e65698a u/logging: Refactor logging printing functions 2023-06-21 22:05:14 +00:00
Jakob Bornecrantz d13f59f6f9 u/logging: Truncate hexdump at 16MB 2023-06-21 22:05:14 +00:00
Jakob Bornecrantz 7ef4a21dca u/logging: Tidy c file [NFC] 2023-06-21 22:05:14 +00:00
Jakob Bornecrantz 200f1b11ca u/truncate_printf: Add truncating helpers 2023-06-21 22:05:14 +00:00
Jakob Bornecrantz 299471f23e cmake: Only enable color logging on Linux
The define was only used on Linux anyways, and with the following
refactor the code looks better we can test just this define.
2023-06-21 22:05:14 +00:00
Jakob Bornecrantz 6819f9cdab doc: Document !1878 2023-06-21 19:14:21 +01:00
Jakob Bornecrantz e2f8c68315 doc: Add new documentation changelog fragment directory 2023-06-21 19:14:21 +01:00
Jakob Bornecrantz add4ecf835 doc: Document !1782 2023-06-21 19:04:34 +01:00
Jakob Bornecrantz 79745da6c8 doc: Add changelog contribution documentation 2023-06-20 13:30:19 +00:00
Jakob Bornecrantz c54c78f427 doc: Document !1876 2023-06-19 18:23:53 +01:00
Linus Lüssing 5340e1fa6b d/wmr: reduce Original/Odyssey controller drift by applying biases
Similar to the HP Reverb G2 controllers apply the biases
provided by their calibration data.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2023-06-18 12:42:14 +02:00
Linus Lüssing 8a239623d7 d/wmr: reduce drifting by applying calibration biases to G2 controllers
For one thing this applies the calibrated gyro and acceleromater bias
provided by the Reverb G2 controllers via the WMR protocol to
to the according sensor values of the controller. For another,
this applies the temperature mixing matrix in the same, partial way as
it is applied to the HMD. That is it currently disregards the polynomial
coefficiency nature - which is okay for the Reverb G2 as any temperature
dependant, non-constant coefficients in the mixing matrix seem to always
be 0 in the calibration data for it.

All this is, in theory, to reduce drifting. However for the Reverb G2 it
did not eliminate it completly, seemingly like for the HMD the
controllers were never temperature calibrated (controllers and HMD use
the same TDK/InvenSense ICM-20602 chip).

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2023-06-18 12:42:14 +02:00
Jakob Bornecrantz da70666179 doc: Document !1875 2023-06-17 22:25:20 +01:00
Jakob Bornecrantz f5eaecc690 t/ctl: Use common IPC connection code 2023-06-17 22:25:16 +01:00
Ryan Pavlik 2c2aa92889 ipc: Factor out client connection setup and teardown for reuse. 2023-06-17 22:23:33 +01:00
Jakob Bornecrantz 8f36da2f54 doc: Document !1858 2023-06-17 18:11:53 +01:00
Linus Lüssing c5fa0e02e8 d/wmr: fix Original/Odyssey controller orientation
Similar to the HP Reverb G2 controllers apply the rotations
provided by their calibration data.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2023-06-17 18:08:46 +01:00
Linus Lüssing 57fb867514 d/wmr: fix Reverb G2 controller orientation
We can't take the IMU values of the Reverb G2 controller as is.
We need to compensate for how the IMU chip is oriented on the
hardware.

Similar to the WMR HMD the WMR controllers' firmware configuration
provides us with the transformations necessary to adjust the
controller orientations. So apply them to fix the orientation
issues.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2023-06-17 18:08:46 +01:00
Linus Lüssing c95be33072 d/wmr: make sensor transform precomputations reuseable
Not only the sensor values from the HMD need to be transformed from WMR
to OpenXR but also the sensor values from the controllers. Therefore
restructuring the according code to be useable by both the WMR HMD and
WMR controller code.

No functional changes.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2023-06-17 18:08:46 +01:00
Jakob Bornecrantz e5de8cee27 doc: Document !1868 2023-06-17 14:15:27 +01:00
Fernando Velazquez Innella 62dff3401c c/client: Wait till D3D12 images aren't in use before releasing the swapchain
This adds a fence signal + CPU wait on the compositor queue before destroying
the swapchain. It fixes a crash in the OpenXR CTS automated tests for D3D12.
2023-06-17 14:15:00 +01:00
Jakob Bornecrantz bf9db8061e doc: Document !1871 2023-06-17 12:53:20 +01:00
utzcoz def08464ee script: Use IGNORE_WORDS_LIST to ignore unknwn [NFC]
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-06-17 12:51:38 +01:00
utzcoz 4b2ebd8648 script: Ignore Kimera for codespell [NFC]
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-06-17 12:51:36 +01:00
utzcoz 0224e97532 st/oxr: Fix simple typo for comments [NFC]
grahpics->graphics

Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-06-17 12:51:33 +01:00
Jakob Bornecrantz cb4227663f doc: Document !1869 2023-06-17 11:48:37 +01:00
Ryan Pavlik 3f644f9f88 st/oxr: clang-tidy fixes 2023-06-17 11:46:14 +01:00
Ryan Pavlik fe6e87b4a7 c/util: Clang tidy fixes 2023-06-17 11:46:14 +01:00
Ryan Pavlik b88aa34017 a/util: Fix doxygen warning 2023-06-17 11:46:14 +01:00
Ryan Pavlik 684a3f22e4 ipc/client: Warning fix 2023-06-17 11:46:14 +01:00
Ryan Pavlik 12eaebfa6a t/common: Warning fix 2023-06-17 11:46:14 +01:00
Ryan Pavlik a97b9a5990 st/oxr: Less obvious warning fixes
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
2023-06-17 11:46:01 +01:00
Ryan Pavlik ae16cb4f13 st/oxr: Obvious warning fixes 2023-06-17 11:46:01 +01:00
Ryan Pavlik c7fcf59866 d/steamvr_lh: Fix warnings 2023-06-17 11:46:01 +01:00
Ryan Pavlik bc9624617a d/opengloves: Fix warnings 2023-06-17 11:46:01 +01:00
Ryan Pavlik 3609f9149e comp/{main,util}: Fix warnings 2023-06-17 11:46:01 +01:00
Ryan Pavlik 1f3eba0428 a/util: Add missing includes
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
2023-06-17 11:46:01 +01:00
Jakob Bornecrantz 07da7a7d6a doc: Document !1867 2023-06-15 17:33:42 +01:00
Jakob Bornecrantz 6176db87e1 st/oxr: Add EXT_eye_gaze_interaction to generation script [NFC]
Missed this in 9f1cf952c6 / !1836, closes #269.
2023-06-15 17:32:52 +01:00
Jakob Bornecrantz b82343d317 doc: Document !1863 2023-06-14 21:35:01 +01:00
Jakob Bornecrantz 2c080454e2 d/vive: Use correct enum for Tundra tracker 2023-06-14 21:34:20 +01:00
Jakob Bornecrantz 131400afab doc: Document !1866 2023-06-14 20:33:11 +01:00
Jakob Bornecrantz 0c59bd35e1 scripts: Ignore specific changelog fragment [NFC] 2023-06-14 20:28:39 +01:00
Jakob Bornecrantz ac8f1a4209 doc: Document !1861 2023-06-14 15:43:00 +01:00
Shawn Wallace a3c2b89067 t/common: Integrate SteamVR Lighthouse driver into builder
Replaced VIVE_OVER_SURVIVE env var with LH_DRIVER, which takes a string and
allows choosing one of the three lighthouse tracking implementations.
2023-06-14 15:43:00 +01:00
Shawn Wallace 4a9f92e151 d/steamvr_lh: Add SteamVR Lighthouse driver wrapper
Implement support for SteamVR's Lighthouse driver (on Linux).
Only tested/works with the OG Vive and Vive wands, but adding new
device support should be simple.
2023-06-14 15:43:00 +01:00
Jakob Bornecrantz 71fa4fd3b4 scripts: Ignore pEvent for spelling
Had to use REGEX because for some reason the ignore word list isn't case
sensitive, the docummention says it is. Added inout there to show how to
add more words.
2023-06-14 15:43:00 +01:00
Jakob Bornecrantz 5f6714172b ext/vfd: Rename childs to children 2023-06-14 15:43:00 +01:00