From 3766284cde0a6cb2eeb152955e6b7e3c5d60f6ce Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 8 Dec 2022 20:58:53 +0700 Subject: [PATCH] Update kuukar_sensors.py --- kuukar/kuukar_sensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kuukar/kuukar_sensors.py b/kuukar/kuukar_sensors.py index 8abe4e4..797030b 100644 --- a/kuukar/kuukar_sensors.py +++ b/kuukar/kuukar_sensors.py @@ -26,7 +26,7 @@ class sensors: pin = data[1] distance = data[2] sonar_id = self.__sonar_adc_pins.index(pin) - self.__sonar_distances[sonar_id] = round((distance-2200)/100) + self.__sonar_distances[sonar_id] = distance def get_brightness_pct(self) -> float: return self.__brightness