Coder Social home page Coder Social logo

Using IRID about simscapefopd HOT 11 OPEN

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024
Using IRID

from simscapefopd.

Comments (11)

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

impulse response invariant discretization (IRID) method

from simscapefopd.

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

I found where to download the code https://www.mathworks.com/matlabcentral/fileexchange/21342-impulse-response-invariant-discretization-of-fractional-order-integrators-differentiators

from simscapefopd.

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

Using this piece of code, I am able to get the controller in z domain.

gam=0.9693;
Ts=.01;
dfod=irid_fod(gam,Ts,5);

cd=7.9733+0.2238*dfod;

s=tf('s');
p=0.99217/(0.2486*s+1)/s;
pd=c2d(p,Ts,'tustin');%plant

phiz=cd*pd/(1+cd*pd);

num=
[0.304491262548240,-0.937336830445012,1.08933728516398,-0.584146578665016,0.138183294173986,-0.0102548884710634];
den=
[0.0101201839324044,-0.0228427827690589,0.0162967440497079,-0.00320636053105791,-0.000423005899049262,8.95094110425754e-05];
Also, we can prove the closed-loop stability from the closed-loop transfer function poles.

from simscapefopd.

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

By using parameters from https://github.com/cnpcshangbo/FOPD-tunner/blob/master/controller%20analysis%20with%20Simulink/run_simulink.m
I made https://github.com/cnpcshangbo/simscapeFOPD/blob/f500473b7d768e2f9eb3667daec4031bb1b45925/QuadRotor/work/IRID/verify.slx

image

from simscapefopd.

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

So, the designed discrete controller is working well in numerical simulation. Next step, I am going to test it in Simscape Quadrotor.

from simscapefopd.

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

However, the performance is like this, when I put the controller in Simscape.
image

from simscapefopd.

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

Closed-loop poles:
[0.000102719520635084,-0.000865537908196629,0.00325800756133674,-0.00720132367524617,0.0103194622578090,-0.00996028888391507,0.00647724417673368,-0.00271339814764816,0.000622707859943362,-1.58357641906846e-05,-2.98124871203922e-05,6.18697332722469e-06,-4.03141517099768e-08,-9.84756134649096e-08,7.30629718690601e-09]

from simscapefopd.

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

What to do next?
A. Try to fix roll and pitch.
B. Read Professor Xue's book.
C. Read FO motion control and ask Yingluo.
D. Search literature.

from simscapefopd.

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

I corrected a bug in the code: 16f19cd
Then the performance in numerical simulation is getting better:
image

from simscapefopd.

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

Then I am going to retry the Simscape simulation.
image

from simscapefopd.

cnpcshangbo avatar cnpcshangbo commented on June 8, 2024

This is a comparison between IOPID and FOPD.
image

from simscapefopd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.