mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-25 09:52:05 +08:00
@@ -14,9 +14,7 @@ from selfdrive.controls.lib.vehicle_model import VehicleModel
|
||||
GearShifter = car.CarState.GearShifter
|
||||
EventName = car.CarEvent.EventName
|
||||
|
||||
# WARNING: this value was determined based on the model's training distribution,
|
||||
# model predictions above this speed can be unpredictable
|
||||
MAX_CTRL_SPEED = (V_CRUISE_MAX + 4) * CV.KPH_TO_MS # 135 + 4 = 86 mph
|
||||
MAX_CTRL_SPEED = (V_CRUISE_MAX + 4) * CV.KPH_TO_MS
|
||||
ACCEL_MAX = 2.0
|
||||
ACCEL_MIN = -3.5
|
||||
|
||||
|
||||
@@ -5,10 +5,11 @@ from common.realtime import DT_MDL
|
||||
from selfdrive.config import Conversions as CV
|
||||
from selfdrive.modeld.constants import T_IDXS
|
||||
|
||||
# kph
|
||||
V_CRUISE_MAX = 145
|
||||
V_CRUISE_MIN = 8
|
||||
V_CRUISE_ENABLE_MIN = 40
|
||||
# WARNING: this value was determined based on the model's training distribution,
|
||||
# model predictions above this speed can be unpredictable
|
||||
V_CRUISE_MAX = 145 # kph
|
||||
V_CRUISE_MIN = 8 # kph
|
||||
V_CRUISE_ENABLE_MIN = 40 # kph
|
||||
|
||||
LAT_MPC_N = 16
|
||||
LON_MPC_N = 32
|
||||
|
||||
Reference in New Issue
Block a user