mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
fix carstate
This commit is contained in:
@@ -153,6 +153,11 @@ class CarState(CarStateBase):
|
||||
ret.steerFaultPermanent = cp_cam.vl["CAM_LKAS"]["ERR_BIT_1"] == 1 if not self.CP.flags & MazdaFlags.TORQUE_INTERCEPTOR else False
|
||||
self.cp_cam = cp_cam
|
||||
self.cp = cp
|
||||
|
||||
# FrogPilot CarState functions
|
||||
self.lkas_previously_enabled = self.lkas_enabled
|
||||
self.lkas_enabled = not self.lkas_disabled
|
||||
|
||||
return ret, fp_ret
|
||||
|
||||
def update_gen2(self, cp, cp_cam, cp_body, frogpilot_variables):
|
||||
|
||||
Reference in New Issue
Block a user