Skip to content

Commit

Permalink
prevent decisios for AHB below 10MPH
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver committed Nov 15, 2019
1 parent 68158e0 commit c224032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/tesla/AHB_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def update(self, CS, frame):
#if moving below 10mph take no decision, then return undecided
if CS.v_ego < 4.47:
_debug("moving too slow for decision")
highLowBeamStatus = AHBDecision.DAS_HIGH_BEAM_UNDECIDED
highLowBeamReason = AHBReason.HIGH_BEAM_OFF_REASON_SNA
highLowBeamStatus = self.prev_highLowBeamStatus
highLowBeamReason = self.prev_highLowBeamReason
return self.set_and_return(CS,frame,highLowBeamStatus,highLowBeamReason)
if self.ahbInfoData is None:
_debug("No radar info")
Expand Down

0 comments on commit c224032

Please sign in to comment.