This commit is contained in:
Your Name
2024-05-18 01:20:06 -05:00
parent 05b5a0dcee
commit e0dd4cb94f
4 changed files with 15 additions and 43 deletions

View File

@@ -411,7 +411,9 @@ class CarState(CarStateBase):
# nonAdaptive = false,
# speedCluster = 0 )
print("Set limit")
print(self.calculate_speed_limit(cp, cp_cam))
self.params_memory.put_float("CarSpeedLimitLiteral", self.calculate_speed_limit(cp, cp_cam))
self.params_memory.put_float("CarSpeedLimit", self.calculate_speed_limit(cp, cp_cam) * speed_factor)
return ret