Skip to content

Commit

Permalink
Merge pull request commaai#162 from rafcabezas/feature/tesla_branch_d…
Browse files Browse the repository at this point in the history
…isable_autosteer_need_ic_integration

disable the need for Autosteer enabled to run with IC integration
  • Loading branch information
rafcabezas authored Oct 25, 2020
2 parents 05ee3d5 + ef25427 commit d15f4c6
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 @@ -528,7 +528,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 d15f4c6

Please sign in to comment.