Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
arne182 authored Mar 9, 2019
1 parent d544f02 commit 3290787
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions selfdrive/controls/lib/planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,12 @@ def update(self, CS, CP, VM, PP, live20, live100, md, live_map_data):

self.lead_1 = live20.live20.leadOne
self.lead_2 = live20.live20.leadTwo
longitudinal_mpc = LongitudinalMpc()

try:
longitudinal_mpc.get_relative_velocity(self.lead_1.vRel)
LongitudinalMpc.get_relative_velocity(self.lead_1.vRel)
except: #if no lead car
try:
longitudinal_mpc.get_relative_velocity(0.0)
LongitudinalMpc.get_relative_velocity(0.0)
except TypeError:
None

Expand Down

0 comments on commit 3290787

Please sign in to comment.