Skip to content

Commit

Permalink
Adjust XREAL lens distance ratio to work better with updated shader l…
Browse files Browse the repository at this point in the history
…ogic, match real world measurements, reduce buffer size for velocity/accel calculations
  • Loading branch information
wheaney committed Nov 16, 2023
1 parent 3c6e56d commit f6f1de2
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/xreal.h
Original file line number Diff line number Diff line change
@@ -2,6 +2,6 @@ static const device_properties_type xreal_air_properties = {
.resolution_w = 1920,
.resolution_h = 1080,
.fov = 46.0,
.lens_distance_ratio = 0.08,
.lens_distance_ratio = 0.035,
.calibration_wait_s = 15
};
2 changes: 1 addition & 1 deletion src/driver.c
Original file line number Diff line number Diff line change
@@ -300,7 +300,7 @@ float mouse_y_remainder = 0.0;
float mouse_z_remainder = 0.0;

#define GYRO_BUFFERS_COUNT 4 // quat values: x, y, z, w
#define GYRO_BUFFER_SIZE 20 // how many events to use for smoothing out velocity
#define GYRO_BUFFER_SIZE 10 // how many events to use for smoothing out velocity

buffer_type **quat_stage_1_buffer = NULL;
buffer_type **quat_stage_2_buffer = NULL;

0 comments on commit f6f1de2

Please sign in to comment.