mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-23 17:33:50 +08:00
Merge branch 'master-new' into HKG-long-tune
This commit is contained in:
@@ -24,4 +24,4 @@ def get_lag_adjusted_curvature(steer_delay, v_ego, psis, curvatures):
|
||||
current_curvature_desired - max_curvature_rate * DT_MDL,
|
||||
current_curvature_desired + max_curvature_rate * DT_MDL)
|
||||
|
||||
return safe_desired_curvature
|
||||
return float(safe_desired_curvature)
|
||||
|
||||
@@ -43,12 +43,13 @@ def get_nn_model_path(CP: structs.CarParams) -> tuple[str, str, bool]:
|
||||
nn_candidate = car_fingerprint
|
||||
|
||||
model_path, max_similarity = check_nn_path(nn_candidate)
|
||||
|
||||
exact_match = max_similarity >= 0.99
|
||||
|
||||
if car_fingerprint not in model_path or 0.0 <= max_similarity < 0.9:
|
||||
nn_candidate = car_fingerprint
|
||||
model_path, max_similarity = check_nn_path(nn_candidate)
|
||||
exact_match = max_similarity >= 0.99
|
||||
|
||||
if 0.0 <= max_similarity < 0.9:
|
||||
with open(TORQUE_NN_MODEL_SUBSTITUTE_PATH, 'rb') as f:
|
||||
sub = tomllib.load(f)
|
||||
|
||||
Reference in New Issue
Block a user