Skip to content

Commit

Permalink
fix calib
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Nov 6, 2024
1 parent daff174 commit bd11e42
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ void update(float &d0) {
float val1 = HX711_Bus::read_scale(0);
float val2 = HX711_Bus::read_scale(1);
if (val1 != -1 && val2 != -1) {
d0 = (val1 - 8143500) / -17.222f;
d0 = (val1 - 8143500) / -33.1;
} else if (val1 != -1) {
d0 = (val1 - 8143500) / -17.222f;
d0 = (val1 - 8143500) / -33.1;
} else if (val2 != -1) {
d0 = val2;
}
Expand Down

0 comments on commit bd11e42

Please sign in to comment.