-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposure fix for PS3EYEDriver in Windows and OSX. #152
Changes from 2 commits
cd030bc
9fa0817
cf4ecb2
5ac7978
3bde3fc
9901391
455c91b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
+3 −3 | src/ps3eye.cpp | |
+30 −0 | src/ps3eyedriver.cpp | |
+12 −0 | src/ps3eyedriver.h |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -473,7 +473,7 @@ psmove_tracker_set_exposure(PSMoveTracker *tracker, | |
float target_luminance = 0; | ||
switch (tracker->exposure_mode) { | ||
case Exposure_LOW: | ||
target_luminance = 0; | ||
target_luminance = 1; | ||
break; | ||
case Exposure_MEDIUM: | ||
target_luminance = 25; | ||
|
@@ -1545,7 +1545,7 @@ psmove_tracker_free(PSMoveTracker *tracker) | |
int | ||
psmove_tracker_adapt_to_light(PSMoveTracker *tracker, float target_luminance) | ||
{ | ||
float minimum_exposure = 2051; | ||
float minimum_exposure = 1; // Was 2051 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Won't this break stuff on non-PS3EYEDriver targets? (such as Linux, Windows) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It may break non PS3EYEDriver targets. I don't know, I can't test. Where did those original numbers come from? They are not at all in the correct range for the PS3EYEDriver. Maybe they should not be hard-coded. See my comment below. |
||
float maximum_exposure = 65535; | ||
float current_exposure = (maximum_exposure + minimum_exposure) / 2.; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation