Skip to content

Commit 7282d35

Browse files
committed
Add logging for crash distance checks and adjust log level to INFO
1 parent 5e96ede commit 7282d35

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/HL/Car.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def stop(self):
129129

130130
def has_Crashed(self):
131131
small_distances = [d for d in self.lidar.rDistance if 0 < d < CRASH_DIST]
132+
log.info(f"Distances: {small_distances}")
132133
if len(small_distances) > 2:
133134
# min_index = self.lidar.rDistance.index(min(small_distances))
134135
min_index = np.argmin(small_distances)
@@ -151,7 +152,7 @@ def main(self):
151152

152153

153154
if __name__ == '__main__':
154-
log.basicConfig(level=log.DEBUG)
155+
log.basicConfig(level=log.INFO)
155156
bp2 = Button("GPIO6")
156157
try:
157158
Schumacher = Driver()

0 commit comments

Comments
 (0)