f9fcc7adab
date: 2026-06-28T09:48:35 master commit: da6313dbe95b3f24bb5d8018b0e5f950f5823ca7
18 lines
721 B
Python
18 lines
721 B
Python
class WMACConstants:
|
|
# Lead detection parameters
|
|
LEAD_WINDOW_SIZE = 6 # Stable detection window
|
|
LEAD_PROB = 0.45 # Balanced threshold for lead detection
|
|
|
|
# Slow down detection parameters
|
|
SLOW_DOWN_WINDOW_SIZE = 5 # Responsive but stable
|
|
SLOW_DOWN_PROB = 0.3 # Balanced threshold for slow down scenarios
|
|
|
|
# Optimized slow down distance curve - smooth and progressive
|
|
SLOW_DOWN_BP = [0., 10., 20., 30., 40., 50., 55., 60.]
|
|
SLOW_DOWN_DIST = [32., 46., 64., 86., 108., 130., 145., 165.]
|
|
|
|
# Slowness detection parameters
|
|
SLOWNESS_WINDOW_SIZE = 10 # Stable slowness detection
|
|
SLOWNESS_PROB = 0.55 # Clear threshold for slowness
|
|
SLOWNESS_CRUISE_OFFSET = 1.025 # Conservative cruise speed offset
|