From 6c361a5b18bd4ac2a0fef618602d47fc841ffd7b Mon Sep 17 00:00:00 2001 From: Arne Schwarck Date: Mon, 27 May 2019 13:12:53 +0200 Subject: [PATCH] add CS.carState to self.car_state --- selfdrive/controls/lib/long_mpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/lib/long_mpc.py b/selfdrive/controls/lib/long_mpc.py index 1e4e0150b20b45..03465fef8b8cc7 100644 --- a/selfdrive/controls/lib/long_mpc.py +++ b/selfdrive/controls/lib/long_mpc.py @@ -85,7 +85,7 @@ def get_TR(self): return 2.7 # 30m at 40km/hr def update(self, CS, lead, v_cruise_setpoint): - self.car_state = CS + self.car_state = CS.carState self.v_ego = CS.carState.vEgo # Setup current mpc state