Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
monado
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
monado
Commits
942df72c
Commit
942df72c
authored
2 years ago
by
Jan Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
d/rift_s: Reduce camera frame delay to 2
parent
32cc6e05
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xrt/drivers/rift_s/rift_s_camera.c
+2
-2
2 additions, 2 deletions
src/xrt/drivers/rift_s/rift_s_camera.c
with
2 additions
and
2 deletions
src/xrt/drivers/rift_s/rift_s_camera.c
+
2
−
2
View file @
942df72c
...
...
@@ -201,8 +201,7 @@ rift_s_camera_create(struct xrt_prober *xp,
cam
->
in_sink
.
push_frame
=
receive_cam_frame
;
bool
enable_aeg
=
debug_get_bool_option_rift_s_autoexposure
();
int
frame_delay
=
3
;
// WMR takes about three frames until the cmd changes the image. TODO: Confirm this for Rift S
int
frame_delay
=
2
;
// Exposure updates take effect on the 2nd frame after sending
cam
->
aeg
=
u_autoexpgain_create
(
U_AEG_STRATEGY_TRACKING
,
enable_aeg
,
frame_delay
);
u_sink_debug_init
(
&
cam
->
debug_sinks
[
0
]);
...
...
@@ -475,6 +474,7 @@ rift_s_camera_update(struct rift_s_camera *cam, struct os_hid_device *hid)
os_mutex_unlock
(
&
cam
->
lock
);
if
(
need_update
)
{
RIFT_S_DEBUG
(
"Updating AEG exposure to %u gain %u"
,
cam
->
target_exposure
,
cam
->
target_gain
);
if
(
rift_s_protocol_send_camera_report
(
hid
,
&
cam
->
camera_report
)
<
0
)
{
RIFT_S_WARN
(
"Failed to update camera settings"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment