Skip to content

Commit 6e83cf4

Browse files
vntarasovrbiasini
authored andcommitted
Keep steering on radar fault (commaai#442)
1 parent 083ce17 commit 6e83cf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selfdrive/controls/lib/planner.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ def update(self, CS, LaC, LoC, v_cruise_kph, force_slow_decel):
449449
if self.model_dead:
450450
events.append(create_event('modelCommIssue', [ET.NO_ENTRY, ET.IMMEDIATE_DISABLE]))
451451
if self.radar_dead or 'commIssue' in self.radar_errors:
452-
events.append(create_event('radarCommIssue', [ET.NO_ENTRY, ET.IMMEDIATE_DISABLE]))
452+
events.append(create_event('radarCommIssue', [ET.NO_ENTRY, ET.SOFT_DISABLE]))
453453
if 'fault' in self.radar_errors:
454-
events.append(create_event('radarFault', [ET.NO_ENTRY, ET.IMMEDIATE_DISABLE]))
454+
events.append(create_event('radarFault', [ET.NO_ENTRY, ET.SOFT_DISABLE]))
455455
if LaC.mpc_solution[0].cost > 10000. or LaC.mpc_nans: # TODO: find a better way to detect when MPC did not converge
456456
events.append(create_event('plannerError', [ET.NO_ENTRY, ET.IMMEDIATE_DISABLE]))
457457

0 commit comments

Comments
 (0)