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

getNewCalibration get wrong factor #134

Closed
PandaBalls opened this issue Jul 7, 2024 · 3 comments
Closed

getNewCalibration get wrong factor #134

PandaBalls opened this issue Jul 7, 2024 · 3 comments
Labels

Comments

@PandaBalls
Copy link

I use 676 as calFactor by setCalFactor(676), it works almost well.
Then I tried use a 20g object with getNewCalibration(20.00), I got the new factor 3.... then get totally wrong weight reads.

What did i do wrong?

@olkal
Copy link
Owner

olkal commented Jul 8, 2024

Hi!
I'm not sure. The formula in getNewCalibration is quite simple, its just (current readValue * exist_calFactor) / input known_mass, so for example: if your current readout is 22.0 but actual mass is 20.0 and calFactor is 676, the function getNewCalibration should calculate (22.0 * 676) / 20.0 and return value should be 743.6. I'm not sure why you get a result that is off.

Copy link

github-actions bot commented Aug 8, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Aug 8, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants