How to set rate limit?

Can somebody please help me I am trying to set a maximum rate limit of an input of aileron deflection to 0.1 radians per second in MATLAB. I can't find how to do this

Respuestas (1)

Sean de Wolski
Sean de Wolski el 7 de Mzo. de 2013

0 votos

You can use min() to saturate:
rate = min(rate,0.1)

1 comentario

Andrew
Andrew el 7 de Mzo. de 2013
Thankyou for your answer....I have this line of code:
daileron = min(25/180*pi,0.1) %25 degree deflection
this is not giving me the desired response in what context do I use this function?

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 7 de Mzo. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by