Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace sign(x) to get continuous derivatives #1

Open
itbellix opened this issue Jan 17, 2024 · 1 comment
Open

Replace sign(x) to get continuous derivatives #1

itbellix opened this issue Jan 17, 2024 · 1 comment

Comments

@itbellix
Copy link
Owner

In the formula for the $\dot{v}$ of a JetRacer, there is a sign function (applied to the value of $v$ itself). This is causing the solver to break down, so I need to replace it with one of the two options:

  • either $tanh(k*v)$, with an appropriately high $k$
  • or with $v/norm(v)$

Let's try which one works best!

@itbellix
Copy link
Owner Author

Turns out that the $tanh(k*x)$, with $k=10$, is the best for our application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant