This commit is contained in:
Joerg Lehmann 2020-07-01 11:11:16 +02:00
parent 363e8ecc23
commit 90782229d5
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ bool ReadSensors(SENSOR_data &sensor_data) {
weight_current32 = (int32_t)((weight_current32_a + weight_current32_b) / 5.0); weight_current32 = (int32_t)((weight_current32_a + weight_current32_b) / 5.0);
// we check if weights are plausible // we check if weights are plausible
plausible = (weight_current32_a > -10000) && (weight_current32_b > -10000) && (weight_current32_a < -150000) && (weight_current32_b < -150000); plausible = (weight_current32_a > -10000) && (weight_current32_b > -10000) && (weight_current32_a < 150000) && (weight_current32_b < 150000);
if (weight_current32 < 0) { if (weight_current32 < 0) {
weight_current32 = 0; weight_current32 = 0;