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

Position and velocity mismatch when compared to Simulink #2

Open
Clyde92 opened this issue Jun 4, 2022 · 3 comments
Open

Position and velocity mismatch when compared to Simulink #2

Clyde92 opened this issue Jun 4, 2022 · 3 comments

Comments

@Clyde92
Copy link

Clyde92 commented Jun 4, 2022

I've got a strange mismatch (see image below) between linear position and velocity when comparing results of the SPART FD and an identical model in Simulink. I'm trying to verify that the mass and Coriolis matrices that are computed are correct for the attached simple example. The intention is to use these same functions to compute the dynamic model for legged robot I'm developing, where I'll use the mass and corilos matrices in the control scheme.

The position and velocity results differ significantly; however, only when I give the model an initial body angular velocity. I've included my code below. I'd immensely appreciate any effort to help resolve these differences.

mismatch

float3D_2x2R_sim.zip

@Wayne-Z
Copy link

Wayne-Z commented Oct 20, 2022

Hi, Clyde92. Did you find the cause of the problem?

@Clyde92
Copy link
Author

Clyde92 commented Oct 20, 2022

No I didn't. Maybe something something solver settings... Something something chaos?

I can say that with 20 Dof multibody system and the dynamics from spart my control stuff in simulink works perfectly in open loop which is a good indication the models match.

@Wayne-Z
Copy link

Wayne-Z commented Oct 21, 2022

Hi, I checked the simulation results of your model in ADAMS and it gives almost the same results as Simulink, but different results from the calculations of your SPART model. Maybe you should check if the float3D_2×2R_dynamics_spart.m file is written correctly.
Keep in contact.

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

2 participants