Skip to content
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

Fixed scaling factors #1284

Merged
merged 1 commit into from
Mar 20, 2017
Merged

Conversation

CzechUavGuy
Copy link
Contributor

Should be scaled by 2^10, not by 2^16. See datasheet https://cdn-shop.adafruit.com/datasheets/TSL2561.pdf page 24

Should be scaled by 2^10 bot by 2^16. See datasheet https://cdn-shop.adafruit.com/datasheets/TSL2561.pdf page 24
@lyzadanger
Copy link
Collaborator

lyzadanger commented Jan 31, 2017

As a second eye here, I do see that CH_SCALE is set to 10 on p24 of datasheet:

image

And subsequent arithmetic, page 27:

image

This (PR) looks good to me but I'd like to get someone who knows this area of the codebase better than I to take a peek...

@rwaldron
Copy link
Owner

rwaldron commented Mar 8, 2017

That looks like I just made a typing mistake. This fix is right. Will land when I return from parental leave in a week and a half, or someone else can merge before.

@rwaldron rwaldron merged commit 933043b into rwaldron:master Mar 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants