Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Moses Turner
Monado
Commits
c60e568a
Commit
c60e568a
authored
Jan 04, 2021
by
Moses Turner
Browse files
saving unimportant VIPD undistortion work
parent
1b2b0813
Pipeline
#253771
failed with stages
in 1 minute and 25 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/xrt/drivers/north_star/ns_hmd.c
View file @
c60e568a
...
...
@@ -328,25 +328,16 @@ ns_v2_mesh_calc(struct xrt_device *xdev,
struct
ns_hmd
*
ns
=
ns_hmd
(
xdev
);
//struct ns_mesh *mesh = ns_mesh(gen);
float
x_ray
=
ns_v2_polyval2d
(
u
,
v
,
ns
->
eye_configs_v2
[
view
].
x_coefficients
);
float
y_ray
=
ns_v2_polyval2d
(
u
,
v
,
ns
->
eye_configs_v2
[
view
].
y_coefficients
);
float
left_ray_bound
=
tan
(
ns
->
eye_configs_v2
[
view
].
fov
.
angle_left
);
float
right_ray_bound
=
tan
(
ns
->
eye_configs_v2
[
view
].
fov
.
angle_right
);
float
up_ray_bound
=
tan
(
ns
->
eye_configs_v2
[
view
].
fov
.
angle_up
);
float
down_ray_bound
=
tan
(
ns
->
eye_configs_v2
[
view
].
fov
.
angle_down
);
int
u_index
=
(
int
)(
u
*
64
);
int
v_index
=
(
int
)(
v
*
64
);
//printf("%d %d\n", u_index, v_index);
x_ray
=
-
grid_for_use
.
grid
[
view
][
v_index
][
u_index
][
1
];
y_ray
=
grid_for_use
.
grid
[
view
][
v_index
][
u_index
][
0
];
float
x_ray
=
grid_for_use
.
grid
[
view
][
v_index
][
u_index
][
1
];
float
y_ray
=
grid_for_use
.
grid
[
view
][
v_index
][
u_index
][
0
];
//printf("ray %f %f", x_ray,y_ray);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment