Update kuukar_sensors.py

This commit is contained in:
Siwat Sirichai 2022-12-08 20:58:53 +07:00
parent dc8a2737ec
commit 3766284cde
1 changed files with 1 additions and 1 deletions

View File

@ -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