From 702e05e7f771e6e721bb71acf1c6346f5d7fc437 Mon Sep 17 00:00:00 2001 From: Johannes <31liwaj@elmbrookstudents.org> Date: Fri, 24 Oct 2025 01:13:45 +0000 Subject: [PATCH] Update codes_for_scrimmage/hazmat/mainhazmatUPD.py --- codes_for_scrimmage/hazmat/mainhazmatUPD.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes_for_scrimmage/hazmat/mainhazmatUPD.py b/codes_for_scrimmage/hazmat/mainhazmatUPD.py index 55e9945..647f370 100644 --- a/codes_for_scrimmage/hazmat/mainhazmatUPD.py +++ b/codes_for_scrimmage/hazmat/mainhazmatUPD.py @@ -31,7 +31,7 @@ async def drive_forward(): async def monitor_distance(): """Monitor ultrasonic sensor and stop when wall is detected.""" while True: - distance = lazer_ranger.distance() + distance = await lazer_ranger.distance() print('Distancing...',distance) if distance < WALL_DISTANCE: