Skip to content

Instantly share code, notes, and snippets.

@cipher982
Created December 19, 2017 20:31
Show Gist options
  • Select an option

  • Save cipher982/687ebbe83545265ea95e4fa1df55fee0 to your computer and use it in GitHub Desktop.

Select an option

Save cipher982/687ebbe83545265ea95e4fa1df55fee0 to your computer and use it in GitHub Desktop.
fg[1 + x_start + t] = x1 - (x0 + v0 * CppAD::cos(psi0) * dt);
fg[1 + y_start + t] = y1 - (y0 + v0 * CppAD::sin(psi0) * dt);
fg[1 + psi_start + t] = psi1 - (psi0 + v0 * delta0 / Lf * dt);
fg[1 + v_start + t] = v1 - (v0 + a0 * dt);
fg[1 + cte_start + t] = cte1 - ((f0 - y0) + (v0 * CppAD::sin(epsi0) * dt));
fg[1 + epsi_start + t] = epsi1 - ((psi0 - psides0) + v0 * delta0 / Lf * dt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment