Skip to content

Commit 984979b

Browse files
JamesL787claude
andcommitted
Default NRDR minimum steer speed to 1 mph
NrdrMinSteerSpeed gates LKAS torque below the configured speed. The default was 0, which disables the gate entirely (vEgo < 0 is never true). Default it to 1 mph so no steering torque is commanded at a dead stop, released as soon as the car is rolling. The effective default lives in three places, all updated together: - honda/carcontroller.py: the get_int() fallback, which is what actually governs at runtime since return_default is False - manager.py: the one-shot seed for params that aren't yet persisted - params_keys.h: the declared default/stock pair, following the convention of the neighboring Nrdr keys (default == stock) Already the persisted value on the Clarity, so this only changes fresh installs and the other modified-EPS Hondas (Civic, Civic Bosch, Insight). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent cc67692 commit 984979b

5 files changed

Lines changed: 3 additions & 3 deletions

File tree

common/libcommon.a

0 Bytes
Binary file not shown.

common/params_keys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
500500
{"ModelManifestVersion", {PERSISTENT, STRING, "", "", 1}},
501501
{"NrdrDriverOverrideThreshold", {PERSISTENT, INT, "2400", "2400", 2}},
502502
{"NrdrIncreaseOverrideTolerance", {PERSISTENT, BOOL, "0", "0", 2}},
503-
{"NrdrMinSteerSpeed", {PERSISTENT, INT, "0", "0", 2}},
503+
{"NrdrMinSteerSpeed", {PERSISTENT, INT, "1", "1", 2}},
504504
{"NrdrOverrideThresholdCenterBoost", {PERSISTENT, INT, "1200", "1200", 2}},
505505
{"NavigationUI", {PERSISTENT, BOOL, "1", "0", 1, SETTINGS_SIMPLE}},
506506
{"NNFF", {PERSISTENT, BOOL, "0", "0", 2}},

common/params_pyx.so

0 Bytes
Binary file not shown.

opendbc_repo/opendbc/car/honda/carcontroller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _get_live_tuning_params(self):
301301
"stopping_decel_rate": float(np.clip(self.param_store.get_int("HondaStoppingDecelRate", default=30), 0, 100)) / 100.0,
302302
"ecu_matched_long": self.param_store.get_bool("NrdrHondaEcuMatchedLong", default=False),
303303
"increase_override_tolerance": self.param_store.get_bool("NrdrIncreaseOverrideTolerance", default=False),
304-
"min_steer_speed": float(np.clip(self.param_store.get_int("NrdrMinSteerSpeed", default=0), 0, 45)) * CV.MPH_TO_MS,
304+
"min_steer_speed": float(np.clip(self.param_store.get_int("NrdrMinSteerSpeed", default=1), 0, 45)) * CV.MPH_TO_MS,
305305
}
306306

307307
def _update_steering_torque(self, CC, CS, live):

system/manager/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def migrate_nrdr_honda_tuning_defaults(params: Params, params_cache: Params) ->
709709
"LatPScaleLowSpeed": 100,
710710
"LatPScaleStandard": 135,
711711
"NrdrDriverOverrideThreshold": 2400,
712-
"NrdrMinSteerSpeed": 0,
712+
"NrdrMinSteerSpeed": 1,
713713
"NrdrOverrideThresholdCenterBoost": 1200,
714714
}
715715

0 commit comments

Comments
 (0)