Skip to content
New issue

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

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

Already on GitHub? # to your account

Use improved simulation in Furuta pendum #23

Open
a-sr opened this issue Feb 13, 2023 · 7 comments
Open

Use improved simulation in Furuta pendum #23

a-sr opened this issue Feb 13, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@a-sr
Copy link
Contributor

a-sr commented Feb 13, 2023

Integrate the RK-45 solver by @YiweiIvy into the Furuta pendulum example. See #20 (comment)

@a-sr a-sr added the enhancement New feature or request label Feb 13, 2023
@a-sr a-sr self-assigned this Feb 13, 2023
@Jakio815
Copy link

Jakio815 commented Mar 21, 2023

I see the results of this example as this pendulum.pdf. However, I see the theta value is kind of weird. It starts as -pi, but suddenly becomes 0, and again at about 0.6 seconds, it changes from 0 to -pi suddenly. I also see this is happening in phi values. Is this working well?

@Jakio815
Copy link

This is actually whats happening when I added the phi value.

@edwardalee
Copy link
Contributor

This looks like an angle wraparound (2pi = 0). However, it seems to wrapping around at pi instead of 2pi. Perhaps there is a factor of two missing somewhere?

@lhstrh
Copy link
Member

lhstrh commented Jul 26, 2023

Would you be able to check on this, @a-sr? Thanks!

@a-sr
Copy link
Contributor Author

a-sr commented Jul 26, 2023

I can take a look at this but I cannot find a branch or PR with the respective code.

@lhstrh
Copy link
Member

lhstrh commented Jul 26, 2023

I'm not sure where this code went. Maybe @YiweiIvy can tell us?

@lhstrh
Copy link
Member

lhstrh commented Sep 19, 2023

I think I was referring to this: https://github.com/lhstrh/experimental-lingua-franca/blob/main/Python/src/FurutaPendulum/PendulumSimulationRK4.lf (let me know if you have trouble accessing it)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants