Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Oct 15, 2024
1 parent bbc9a55 commit 5f4ca36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendbc/car/toyota/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def update(self, cp, cp_cam, *_) -> structs.CarState:
self.pcm_accel_net += neutral_accel

if self.CP.flags & ToyotaFlags.HYBRID and self.CP.carFingerprint in TSS2_CAR:
self.computer_gas = cp.vl["GEAR_PACKET_HYBRID"]["FDRV"]
self.computer_gas = cp.vl["GEAR_PACKET_HYBRID"]["FDRVREAL"]
self.computer_brake = cp.vl["BRAKE"]["BRAKE_FORCE"]

ret.doorOpen = any([cp.vl["BODY_CONTROL_STATE"]["DOOR_OPEN_FL"], cp.vl["BODY_CONTROL_STATE"]["DOOR_OPEN_FR"],
Expand Down

0 comments on commit 5f4ca36

Please sign in to comment.