Skip to content

Commit

Permalink
test load cell 2
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Nov 2, 2024
1 parent c331218 commit 276cdaf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ void update(float &d0, float &d1, float &d2) {
} // namespace uwb
namespace load_cell {
void update(float &d0) {
float val1 = HX711_Bus::read_scale(0);
// float val2 = HX711_Bus::read_scale(1);
// float val1 = HX711_Bus::read_scale(0);
float val2 = HX711_Bus::read_scale(1);
// if (val1 != -1 && val2 != -1) {
// d0 = val1 + val2;
if (val1 != -1) {
d0 = val1;
if (val2 != -1) {
d0 = val2;
}
}
} // namespace load_cell
Expand Down

0 comments on commit 276cdaf

Please sign in to comment.