From 65134be0d11687536531f47a6d640deec15de789 Mon Sep 17 00:00:00 2001 From: Ted Slesinski Date: Tue, 20 Jun 2017 02:26:16 -0400 Subject: [PATCH] Adds correct value of 8 to gearshifter check array --- selfdrive/car/honda/carstate.py | 2 +- selfdrive/car/honda/interface.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/selfdrive/car/honda/carstate.py b/selfdrive/car/honda/carstate.py index a50ae19c87..a7dae7f5b2 100644 --- a/selfdrive/car/honda/carstate.py +++ b/selfdrive/car/honda/carstate.py @@ -339,7 +339,7 @@ class CarState(object): self.cruise_setting = cp.vl[0x1A6]['CRUISE_SETTING'] self.cruise_buttons = cp.vl[0x1A6]['CRUISE_BUTTONS'] self.main_on = cp.vl[0x1A6]['MAIN_ON'] - self.gear_shifter_valid = self.gear_shifter in [1,4] # TODO: 1/P allowed for debug + self.gear_shifter_valid = self.gear_shifter in [1,8] # TODO: 1/P allowed for debug self.blinker_on = cp.vl[0x294]['LEFT_BLINKER'] or cp.vl[0x294]['RIGHT_BLINKER'] self.left_blinker_on = cp.vl[0x294]['LEFT_BLINKER'] self.right_blinker_on = cp.vl[0x294]['RIGHT_BLINKER'] diff --git a/selfdrive/car/honda/interface.py b/selfdrive/car/honda/interface.py index f8149882b4..58e996826a 100755 --- a/selfdrive/car/honda/interface.py +++ b/selfdrive/car/honda/interface.py @@ -181,8 +181,7 @@ class CarInterface(object): errors.append('steerTemporarilyUnavailable') if self.CS.brake_error: errors.append('brakeUnavailable') - # crvtodo: fix gearbox read. - if not self.CS.gear_shifter_valid and not self.CS.crv: + if not self.CS.gear_shifter_valid: errors.append('wrongGear') if not self.CS.door_all_closed: errors.append('doorOpen')