Skip to content

Commit

Permalink
disale the need for Autosteer enabled to run with IC integration
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver authored Aug 18, 2020
1 parent 3dd2f9e commit 233f9f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfdrive/car/tesla/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ def update(self, cp, epas_cp, pedal_cp):
self.gpsVehicleSpeed = cp.vl['UI_gpsVehicleSpeed']["UI_gpsVehicleSpeed"] * CV.KPH_TO_MS

if (self.hasTeslaIcIntegration):
self.apEnabled = (cp.vl["MCU_chassisControl"]["MCU_latControlEnable"] == 1)
#BB: AutoSteer enabled does not work unless we do old style port mapping on MCU
#self.apEnabled = (cp.vl["MCU_chassisControl"]["MCU_latControlEnable"] == 1)
self.summonButton = int(cp.vl["UI_driverAssistControl"]["UI_autoSummonEnable"])
self.apFollowTimeInS = 1 + cp.vl["MCU_chassisControl"]["MCU_fcwSensitivity"] * 0.5
self.keepEonOff = cp.vl["MCU_chassisControl"]["MCU_ldwEnable"] == 1
Expand Down

0 comments on commit 233f9f6

Please sign in to comment.