diff --git a/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp b/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp index 03165a2c..df476439 100644 --- a/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp +++ b/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp @@ -95,13 +95,11 @@ void update(float &d0, float &d1, float &d2) { namespace load_cell { 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 + val2; - } else if (val1 != -1) { + // float val2 = HX711_Bus::read_scale(1); + // if (val1 != -1 && val2 != -1) { + // d0 = val1 + val2; + if (val1 != -1) { d0 = val1; - } else if (val2 != -1) { - d0 = val2; } } } // namespace load_cell