Skip to content

Commit

Permalink
fix not disengaging with gas
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Jun 10, 2019
1 parent 9d56840 commit 2d47191
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions selfdrive/car/toyota/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,7 @@ def update(self, cp, cp_cam):

self.brake_pressed = cp.vl["BRAKE_MODULE"]['BRAKE_PRESSED']
if self.CP.enableGasInterceptor:
if self.CP.carFingerprint == CAR.COROLLA:
self.pedal_gas = cp.vl["GAS_PEDAL"]['GAS_PEDAL']
else:
self.pedal_gas = cp.vl["GAS_SENSOR"]['INTERCEPTOR_GAS']
self.pedal_gas = cp.vl["GAS_SENSOR"]['INTERCEPTOR_GAS']
else:
self.pedal_gas = cp.vl["GAS_PEDAL"]['GAS_PEDAL']
self.car_gas = self.pedal_gas
Expand Down

0 comments on commit 2d47191

Please sign in to comment.