Commit graph

63 commits

Author SHA1 Message Date
Moses Turner 352fda971c tests: Add tests for swing-twist conversions 2022-11-23 13:02:35 -06:00
Jakob Bornecrantz d48de0d832 u/worker: Use U_TRACE_SET_THREAD_NAME 2022-11-20 13:52:38 +00:00
Moses Turner a26daf3fb5 tests: Clean up tests_quat_change_of_basis 2022-11-14 21:27:30 -06:00
Moses Turner d2e2c3a988 cmake: Run cmake-format.sh 2022-09-19 21:57:37 +01:00
Moses Turner 173d55c58b tests: Add test_quat_change_of_basis 2022-09-19 11:17:34 -05:00
Jakob Bornecrantz 29a43797fc tests: Fix compile with SDL2
This happens on certain old version of SDL2 where SDL2_LIBRARIES isn't a
magical target thingy.
2022-09-07 13:56:33 +01:00
Simon Zeni 210c01c77b tests: disable OpenGL client compositor test if GLX is not available 2022-08-23 05:41:56 -04:00
Ryan Pavlik fbdc3db03d tests: Add tests for the OpenGL client compositor code 2022-08-22 19:53:50 +00:00
Ryan Pavlik 12547e116a tests: Add basic d3d12 client compositor tests 2022-07-26 14:45:29 +00:00
Ryan Pavlik 576b158a83 a/d3d: Add some d3d12 features 2022-07-26 14:45:29 +00:00
Ryan Pavlik b37a89e312 tests: Clean up unique_ptr usage 2022-07-26 14:45:29 +00:00
Mateo de Mayo ae8305f324 u/deque: Add generic wrapper for std::deque 2022-07-25 19:08:46 +00:00
Ryan Pavlik 41b4232f8a tests: Resolve warnings 2022-07-14 14:17:35 +00:00
Mateo de Mayo afa7f7ade9 u/vector: Add generic wrapper for std::vector 2022-07-07 15:35:04 +00:00
Mateo de Mayo d0b00c7d23 tests: Add explicit margin to Approx in tests_pose
To avoid an issue with catch2::Approx defaults applied around 0
See https://github.com/catchorg/Catch2/issues/1079
2022-07-05 11:59:27 -03:00
Moses Turner b4a29e8b29 tests: Add case for Levenberg-Marquardt optimizer 2022-06-20 16:33:48 +01:00
Mateo de Mayo d773ab4cf2 a/math: Add pose interpolate function and others
- math_matrix_4x4_isometry_from_pose
- math_pose_from_isometry
- math_pose_interpolate
- m_vec3_equal
2022-06-18 14:19:01 -03:00
Mateo de Mayo f904f3f16c a/math: Repurpose test file for testing pose math 2022-06-18 14:19:01 -03:00
Mateo de Mayo e7c3376612 a/math: Add disabled test to show problem with current quat_exp implementation 2022-06-02 15:47:57 +00:00
Campbell Suter 0f8da1900b a/math: Fix math_pose_invert breaking on rotated poses, and add a test
Previously, math_pose_invert would apply a multiplication in the wrong
order. This lead to the position of the 'original' pose being rotated.

This patch fixes that, and adds a unit test to check this case.
2022-06-01 16:44:03 +01:00
Charlton Rodda aa31ac3789 st/oxr: Implement dpad emulation 2022-05-31 13:25:48 +00:00
Ryan Pavlik 596d15a50c a/d3d: Further namespace the d3d11-specific functions 2022-05-25 18:12:22 +00:00
Jakob Bornecrantz b56aebff47 tests: Include u_time.h in history_buf 2022-05-23 09:12:54 -05:00
Ryan Pavlik 2168e0b93c tests: D3D11 and Vulkan client compositor tests 2022-05-20 22:37:15 +01:00
Ryan Pavlik 7ccf622ab3 tests: Add tests for functionality in auxiliary/d3d 2022-05-20 22:37:15 +01:00
Ryan Pavlik ec3f056199 tests: Word choice/clarity 2022-05-17 17:40:58 -05:00
Ryan Pavlik f0d5cc1670 tests: Fix conversion warnings 2022-05-03 22:44:33 +01:00
Jakob Bornecrantz bfd4d811e8 tests: Fix conversion warnings 2022-05-02 17:16:04 +01:00
Jakob Bornecrantz 175ff58f10 build: Remove meson files 2022-04-28 21:36:25 +00:00
Ryan Pavlik 7db9131aab a/util: Add pop_back to HistoryBuffer 2022-04-27 09:51:12 -05:00
Ryan Pavlik 3e6ec47296 monado: Apply clang-tidy fixes to most of the codebase.
All at least visually inspected, some revised from the auto-fixit
2022-04-13 09:34:54 -05:00
Ryan Pavlik ef89183f02 tests: Add u_worker tests 2022-03-11 15:29:16 +00:00
Ryan Pavlik 7b3a2e7c1a a/math: C wrapper for the float low-pass filter too. 2022-02-22 16:44:44 -06:00
Ryan Pavlik cf07791e93 a/math: Add a C wrapper for the integer low-pass filter. 2022-02-22 16:42:53 -06:00
Ryan Pavlik a0e2df4cf0 tracking/math: Move the generic low pass filters to a/math 2022-02-22 16:42:53 -06:00
Ryan Pavlik b621fef75d tests: Equivalent tests for the non-integer low pass filter 2022-02-22 09:58:19 -06:00
Ryan Pavlik 4156cabedf a/tracking: Add an integer version of the low-pass filter. 2022-02-22 09:58:19 -06:00
Ryan Pavlik 928254ffed a/math: Add a rational number struct template. 2022-02-22 09:58:19 -06:00
Mateo de Mayo b04c26e522 a/math: Expose quat_{exp, ln} and test them 2022-02-22 13:34:45 +00:00
Ryan Pavlik d70feaea42 tests: Clean up build script for tests. 2022-02-19 01:17:11 +00:00
Jakob Bornecrantz 16658b7d6a tests: Stop clang-format versions to disagreeing (NFC) 2022-02-15 01:37:10 +00:00
Ryan Pavlik a904914e6e a/util: Wrap "just enough" of the ring buffer stuff for generic use from C. 2022-02-08 13:18:15 -06:00
Ryan Pavlik 6908486022 a/util: Add age clamping to history buffer. 2022-02-08 17:00:11 +00:00
Ryan Pavlik 603117a1d1 a/util: Split history buf file up, factor out more generic iterator base 2022-02-08 17:00:11 +00:00
Ryan Pavlik 90c74578d1 a/util: Refactor HistoryBuffer to be more like a standard container. 2022-02-08 17:00:11 +00:00
Ryan Pavlik a303aff925 tests: Start work on frame pacing test. 2022-02-08 10:51:39 -06:00
Mateo de Mayo 7e0d93e3fb tests: Add tests for quatexpmap interface functions and minor changes in their docs 2021-12-22 12:16:27 -03:00
Ryan Pavlik 5b1c60eeb0 xrt: Add unique_ptr typedef for xrt_device 2021-12-10 21:24:02 +00:00
Ryan Pavlik 26e5f6eee7 a/math: Bring the C++ wrapper for relation_history up to parity.
Also add tests for it too.
2021-12-10 21:06:04 +00:00
Ryan Pavlik ef4550c268 a/math: Add a "get latest" to relation history as well. 2021-12-10 21:06:04 +00:00