Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
add CS.carState to self.car_state
Browse files Browse the repository at this point in the history
  • Loading branch information
arne182 authored May 27, 2019
1 parent 86bd28f commit 6c361a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/long_mpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c361a5

Please sign in to comment.