Skip to content

Commit

Permalink
one more GM vEgo abs
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Oct 2, 2024
1 parent d81c4c7 commit ea87b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendbc/car/gm/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def update(self, CC, CS, now_nanos):
if self.frame % speed_and_accelerometer_step == 0:
idx = (self.frame // speed_and_accelerometer_step) % 4
can_sends.append(gmcan.create_adas_steering_status(CanBus.OBSTACLE, idx))
can_sends.append(gmcan.create_adas_accelerometer_speed_status(CanBus.OBSTACLE, CS.out.vEgo, idx))
can_sends.append(gmcan.create_adas_accelerometer_speed_status(CanBus.OBSTACLE, abs(CS.out.vEgo), idx))

if self.CP.networkLocation == NetworkLocation.gateway and self.frame % self.params.ADAS_KEEPALIVE_STEP == 0:
can_sends += gmcan.create_adas_keepalive(CanBus.POWERTRAIN)
Expand Down

0 comments on commit ea87b4f

Please sign in to comment.