RealFast v0.10.3 release

https://github.com/realfast/openpilot
This commit is contained in:
Vincent Wright
2025-09-22 21:17:00 -07:00
committed by James
parent 338c9f0a42
commit 4726bdce29
9 changed files with 95 additions and 15 deletions
+11 -4
View File
@@ -1,6 +1,7 @@
from cereal import car, log
import cereal.messaging as messaging
from opendbc.car import DT_CTRL, structs
from opendbc.car.chrysler.values import RAM_DT
from opendbc.car.gm.values import GMFlags
from opendbc.car.interfaces import MAX_CTRL_SPEED
@@ -58,10 +59,16 @@ class CarSpecificEvents:
events = self.create_common_events(CS, CS_prev, extra_gears=extra_gears)
# Low speed steer alert hysteresis logic
if self.CP.minSteerSpeed > 0. and CS.vEgo < (self.CP.minSteerSpeed + 0.5):
self.low_speed_alert = True
elif CS.vEgo > (self.CP.minSteerSpeed + 1.):
self.low_speed_alert = False
if self.CP.carFingerprint in RAM_DT:
if CS.vEgo >= self.CP.minEnableSpeed:
self.low_speed_alert = False
if (self.CP.minEnableSpeed >= 14.5) and (CS.gearShifter != GearShifter.drive):
self.low_speed_alert = True
else:
if self.CP.minSteerSpeed > 0. and CS.vEgo < (self.CP.minSteerSpeed + 0.5):
self.low_speed_alert = True
elif CS.vEgo > (self.CP.minSteerSpeed + 1.):
self.low_speed_alert = False
if self.low_speed_alert:
events.add(EventName.belowSteerSpeed)
+7
View File
@@ -57,6 +57,9 @@ class VehicleParamsLearner:
self.reset(None)
# FrogPilot variables
self.CP = CP
def reset(self, t: float | None):
self.kf.init_state(self.x_initial, covs=self.P_initial, filter_time=t)
@@ -187,6 +190,10 @@ class VehicleParamsLearner:
liveParameters.debugFilterState.value = x.tolist()
liveParameters.debugFilterState.std = P.tolist()
# FrogPilot variables
if self.CP.carFingerprint == "RAM_HD":
liveParameters.valid = True
return msg