Files
dragonpilot/selfdrive/modeld/constants.py
Comma Device 5c73e264e9 Release 260308
2026-03-08 23:26:57 +08:00

9 lines
228 B
Python

def index_function(idx, max_val=192, max_idx=32):
return (max_val) * ((idx/max_idx)**2)
class ModelConstants:
# time and distance indices
IDX_N = 33
T_IDXS = [index_function(idx, max_val=10.0) for idx in range(IDX_N)]