mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-29 19:03:59 +08:00
9f1066ce83
Adapt the lane-centering implementation from PR #74 by @jc01rho. Keep controls in Galaxy developer settings, add confidence and geometry gates, preserve E2E path authority, and reset all related offsets through Safe Mode.
11 lines
272 B
Python
11 lines
272 B
Python
from openpilot.starpilot.common.safe_mode import SAFE_MODE_MANAGED_KEYS
|
|
|
|
|
|
def test_safe_mode_manages_lane_centering_settings():
|
|
assert {
|
|
"CameraOffset",
|
|
"LaneCentering",
|
|
"LaneCenteringE2EAuthority",
|
|
"LaneCenterOffset",
|
|
} <= set(SAFE_MODE_MANAGED_KEYS)
|