Is there a way to reset after a given time the initial condition of an integrator block in simulink?

10 vues (au cours des 30 derniers jours)
I have to simulate the attitude determination of a satellite integrating the measurements of the angular velocities I got from a gyroscope. As initial condition I can use the values i got from other sensors to start the integration. by comparison with the exact attitude i notice that the integrated one from the measurement diverges (of course) as time goes. i was suggested to reset the integral after some time by putting a new initial condition but i haven't found a way to do it so my question is: how can i change the initial value of the integration after some time to reduce the errors introduced by the integration?
thanks to whoever can clarify me this point

Réponses (1)

Paul
Paul le 5 Déc 2020
If you haven't already, check out section Resetting the State on the Integrator block doc page.
  5 commentaires
Paul
Paul le 6 Déc 2020
The external initial condition input to the the integrator can be the output from another block. It sounds like you want to use the true quaternion as the input to the initial condition port of the integrator block in question. Then this integrator will initialize to the true quaternion at t=0 and reset to the true quaternion based on the input to to the external reset port.
Luca Caffiero
Luca Caffiero le 6 Déc 2020
thanks man you saved my day! very much appreciated i wish you well!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with Aerospace Blockset dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by