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

Réponses (1)

Sean de Wolski
Sean de Wolski le 7 Mar 2013

0 votes

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

1 commentaire

Andrew
Andrew le 7 Mar 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?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Programming dans Centre d'aide et File Exchange

Produits

Tags

Question posée :

le 7 Mar 2013

Community Treasure Hunt

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

Start Hunting!

Translated by