Skip to content

Commit

Permalink
Merge pull request #30 from rdm128/rdm128-gm-fix
Browse files Browse the repository at this point in the history
Fix GM
  • Loading branch information
Gernby authored Aug 3, 2019
2 parents 65d3066 + 36c7d19 commit 228cf64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/gm/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self, CP, canbus):
K=[[0.12287673], [0.29666309]])
self.v_ego = 0.

def update(self, pt_cp, ch_cp):
def update(self, pt_cp):

self.can_valid = pt_cp.can_valid
self.prev_cruise_buttons = self.cruise_buttons
Expand Down Expand Up @@ -175,7 +175,7 @@ def update(self, pt_cp, ch_cp):
self.gear_shifter_valid = self.gear_shifter == car.CarState.GearShifter.drive

# Update Friction Brakes from Chassis Canbus
self.frictionBrakesActive = bool(ch_cp.vl["EBCMFrictionBrakeStatus"]["FrictionBrakePressure"] != 0)
# self.frictionBrakesActive = bool(ch_cp.vl["EBCMFrictionBrakeStatus"]["FrictionBrakePressure"] != 0)

def get_follow_level(self):
return self.follow_level

0 comments on commit 228cf64

Please sign in to comment.