From 611dc4c37f4a607c26542dce67d7568a8319cf55 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Wed, 24 Jun 2020 18:48:57 -0700 Subject: [PATCH] Honda Bosch, use proper non adaptive cruise mode alert --- selfdrive/car/honda/carstate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/honda/carstate.py b/selfdrive/car/honda/carstate.py index c8360d756..4845e482f 100644 --- a/selfdrive/car/honda/carstate.py +++ b/selfdrive/car/honda/carstate.py @@ -298,7 +298,8 @@ class CarState(CarStateBase): ret.brake = cp.vl["VSA_STATUS"]['USER_BRAKE'] ret.cruiseState.enabled = cp.vl["POWERTRAIN_DATA"]['ACC_STATUS'] != 0 - ret.cruiseState.available = bool(main_on) and self.cruise_mode == 0 + ret.cruiseState.available = bool(main_on) + ret.cruiseState.nonAdaptive = self.cruise_mode != 0 # Gets rid of Pedal Grinding noise when brake is pressed at slow speeds for some models if self.CP.carFingerprint in (CAR.PILOT, CAR.PILOT_2019, CAR.RIDGELINE):