Remove offset from curvature (#761)

old-commit-hash: 61bbb52172
commatwo_master
Gernby 6 years ago committed by rbiasini
parent 081aad79c9
commit 68f9476e45
  1. 2
      selfdrive/controls/controlsd.py

@ -341,7 +341,7 @@ def data_send(sm, CS, CI, CP, VM, state, events, actuators, v_cruise_kph, rk, ca
"vEgo": CS.vEgo,
"vEgoRaw": CS.vEgoRaw,
"angleSteers": CS.steeringAngle,
"curvature": VM.calc_curvature(CS.steeringAngle * CV.DEG_TO_RAD, CS.vEgo),
"curvature": VM.calc_curvature((CS.steeringAngle - sm['pathPlan'].angleOffset) * CV.DEG_TO_RAD, CS.vEgo),
"steerOverride": CS.steeringPressed,
"state": state,
"engageable": not bool(get_events(events, [ET.NO_ENTRY])),

Loading…
Cancel
Save