Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ntegan1 committed Feb 23, 2023
1 parent 3cf09c4 commit f0812ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions selfdrive/controls/lib/longitudinal_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ class LongitudinalPlanner:
def maneuver_update(self, be, lmt):
for b in be:
if b.type == car.CarState.ButtonEvent.Type.gapAdjustCruise:
if b.pressed is True and not self.maneuvering:
if b.pressed is True:
print("longplanner update maneuver pressed")
self.maneuvering = True
self.maneuverStartMonoTime = lmt
if b.pressed is False and self.maneuvering:
elif b.pressed is False:
print("longplanner update maneuver not pressed")
self.maneuvering = False
self.maneuverStartMonoTime = None
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/controls/plannerd.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def plannerd_thread(sm=None, pm=None):

if sm is None:
sm = messaging.SubMaster(['carControl', 'carState', 'controlsState', 'radarState', 'modelV2'],
poll=['radarState', 'modelV2'], ignore_avg_freq=['radarState'])
poll=['radarState', 'modelV2', 'carState'], ignore_avg_freq=['radarState'])

if pm is None:
pm = messaging.PubMaster(['longitudinalPlan', 'lateralPlan', 'uiPlan'])
Expand Down

0 comments on commit f0812ba

Please sign in to comment.