* set y too

* new ref
pull/2486/head
HaraldSchafer 5 years ago committed by GitHub
parent 1690fd62c2
commit e6668625fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/controls/lib/pathplanner.py
  2. 2
      selfdrive/test/process_replay/ref_commit

@ -43,6 +43,7 @@ DESIRES = {
def calc_states_after_delay(states, v_ego, steer_angle, curvature_factor, steer_ratio, delay):
states[0].x = v_ego * delay
states[0].psi = v_ego * curvature_factor * math.radians(steer_angle) / steer_ratio * delay
states[0].y = states[0].x * math.sin(states[0].psi / 2)
return states

@ -1 +1 @@
635052c6f021001fd11ec68ad0f6ee1811ee4a76
804ee1ffcfa0639782f1322874d89f0c8c412c50
Loading…
Cancel
Save