We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d05555c commit 8947fcaCopy full SHA for 8947fca
1 file changed
src/HL/Car.py
@@ -153,7 +153,7 @@ def stop(self):
153
154
def has_Crashed(self):
155
156
- small_distances = [d for d in self.lidar.rDistance[360:720] if 0 < d < CRASH_DIST] # 360 to 720 is the front of the car. 1/3 of the fov of the lidar
+ small_distances = [d for d in self.lidar.rDistance[300:780] if 0 < d < CRASH_DIST] # 360 to 720 is the front of the car. 1/3 of the fov of the lidar
157
log.debug(f"Distances: {small_distances}")
158
if len(small_distances) > 2:
159
# min_index = self.lidar.rDistance.index(min(small_distances))
0 commit comments