Trailer Load Gas Tuning

This commit is contained in:
firestar5683
2025-12-12 01:01:16 -06:00
parent 0e93ceef00
commit 4cfd893837
26 changed files with 369 additions and 13 deletions
+3
View File
@@ -152,8 +152,11 @@ class CarInterfaceBase(ABC):
ret = cls._get_params(ret, candidate, fingerprint, car_fw, experimental_long, docs, frogpilot_toggles)
trailer_load_kg = getattr(frogpilot_toggles, "trailer_load_kg", 0)
# Vehicle mass is published curb weight plus assumed payload such as a human driver; notCars have no assumed payload
if not ret.notCar:
ret.mass = ret.mass + trailer_load_kg
ret.mass = ret.mass + STD_CARGO_KG
# Set params dependent on values set by the car interface