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 4c68534 commit 9d56840
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion selfdrive/car/toyota/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,10 @@ def update(self, cp, cp_cam):

self.brake_pressed = cp.vl["BRAKE_MODULE"]['BRAKE_PRESSED']
if self.CP.enableGasInterceptor:
self.pedal_gas = cp.vl["GAS_SENSOR"]['INTERCEPTOR_GAS']
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']
else:
self.pedal_gas = cp.vl["GAS_PEDAL"]['GAS_PEDAL']
self.car_gas = self.pedal_gas
Expand Down

0 comments on commit 9d56840

Please sign in to comment.