From c22403295e2451c25decf460ae69771924438115 Mon Sep 17 00:00:00 2001 From: BogGyver Date: Fri, 15 Nov 2019 16:55:22 -0500 Subject: [PATCH] prevent decisios for AHB below 10MPH --- selfdrive/car/tesla/AHB_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/tesla/AHB_module.py b/selfdrive/car/tesla/AHB_module.py index 906fca3c892889..6ae0c952baca77 100644 --- a/selfdrive/car/tesla/AHB_module.py +++ b/selfdrive/car/tesla/AHB_module.py @@ -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")