Files
onepilot/selfdrive/sunnypilot/__init__.py
2024-07-02 01:20:51 +00:00

11 lines
256 B
Python

import os
SIMULATION = "SIMULATION" in os.environ
def get_model_generation(params):
custom_model = params.get_bool("CustomDrivingModel") and not SIMULATION
gen = int(params.get("DrivingModelGeneration", encoding="utf8"))
return custom_model, gen