Allow on-road startup without cloud registration

This commit is contained in:
firestar5683
2026-11-23 19:54:30 -06:00
parent 47346ad98b
commit 131ad10d63
2 changed files with 2 additions and 9 deletions
+1 -8
View File
@@ -22,7 +22,7 @@ from openpilot.common.filter_simple import FirstOrderFilter
from openpilot.common.params import Params, UnknownKeyName
from openpilot.common.realtime import DT_HW
from openpilot.selfdrive.selfdrived.alertmanager import set_offroad_alert
from openpilot.common.hardware import HARDWARE, COMMA_HARDWARE, PC
from openpilot.common.hardware import HARDWARE, COMMA_HARDWARE
from openpilot.common.basedir import BASEDIR
from openpilot.common.git import get_short_branch
from openpilot.common.hardware.usb import CHESTNUT_FW_VERSION, CHESTNUT_USB_PRODUCT, get_usb_state, get_usb_topology, is_chestnut_usb_id, set_usb_state
@@ -36,7 +36,6 @@ from openpilot.system.hardware.fan_controller import FanController
from openpilot.system.hardware.chestnut.monitoring import chestnut_state_thread
from openpilot.system.hardware.chestnut.status import ChestnutStatus
from openpilot.common.version import terms_version, training_version
from openpilot.system.athena.registration import UNREGISTERED_DONGLE_ID
from openpilot.starpilot.models import jetlink_adapter
ThermalStatus = log.DeviceState.ThermalStatus
@@ -442,12 +441,6 @@ def hardware_thread(end_event, hw_queue, power_telemetry: PowerTelemetry) -> Non
if show_alert:
msg.deviceState.fanSpeedPercentDesired = 100
# *** registration check ***
if not PC:
# we enforce this for our software, but you are welcome
# to make a different decision in your software
startup_conditions["registered_device"] = params.get("DongleId") != UNREGISTERED_DONGLE_ID
# Handle offroad/onroad transition
timing.mark("engagement")
should_start = resolve_start(drive_mode, onroad_conditions, startup_conditions, already_started=started_ts is not None)
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "703c31923ca9ac0e47c15dfead33cbf9f47ee1de2c6be833345d4b88ad2cc0ed", "schema_version": 1}
{"protected_inventory_sha256": "3ab31e9baba4a09682eda532a2dddc99e6af46ed5de8a85ee3f47bdffe8f37d7", "schema_version": 1}