Coder Social home page Coder Social logo

simscapefopd's Introduction

simscapeFOPD

Simscape drone altitude control with fractional order proportional derivate controller

Forked from:

https://www.mathworks.com/videos/quadcopter-simulation-and-control-made-easy-93365.html

Cititions:

@inproceedings{shang2018fractional_simscape_gncc,
  title={Fractional Order Flight Control of Quadrotor UAS: A Simscape Benchmark Environment and A Case Study},
  author={Shang, Bo and Wu, Chengdong and Zhang, Yunzhou and Chen, YangQuan},
  booktitle={2018 IEEE Chinese Guidance, Navigation and Control Conference (CGNCC)},
  pages={1-6},
  year={2018},
  organization={IEEE}
}

Publications:

Bo Shang, Chengdong Wu, Yunzhou Zhang, YangQuan Chen. Fractional Order Flight Control of Quadrotor UAS: A Simscape Benchmark Environment and A Case Study. 2018 IEEE Chinese Guidance, Navigation and Control Conference (CGNCC), Xiamen, 2018, pp. 1-6. (accepted)

To request the preprint version:

https://www.researchgate.net/publication/323933166_Fractional_Order_Flight_Control_of_Quadrotor_UAS_A_Simscape_Benchmark_Environment_and_A_Case_Study

Videos:

Movies on how the simulation works can be accessed at: http://list.youku.com/albumlist/show/id_51604678.html

FAQs:

https://github.com/cnpcshangbo/simscapeFOPD/issues

Feel free to ask your own qustions.

Contact us:

[email protected]

simscapefopd's People

Contributors

cnpcshangbo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

simscapefopd's Issues

How to understand this piece of blocks?

Hi,
I found a piece of Simulink blocks hard to understand.
image
image

From the simulation data inspector, I am able to see that the triggered signal and the virtical position is like that. But why the triggered signal is like that?
The enable control is just step function at 5 sec.

Error after changing the sampling period

Simulation 3 Clear
12:57 PM Elapsed: 21 sec
The sample time 0 of 'Quadrotor_Controller/Controller/Tuned IOPID/Derivative' at input port 1 is different from the sample time 0.1 of 'Quadrotor_Controller/Controller/Tuned IOPID/Gain2' at output port 1. Consider inserting a Rate Transition block between the two ports or clearing the 'Configuration Parameters' > 'Solver' > 'Treat each discrete rate as a separate task' option. Alternatively, you can control the diagnostic action for unspecified rate transitions by changing the option "Multitask (or Single task) rate transition" on the Sample Time Diagnostics pane of the Configuration Parameters dialog box.

How to identify the altitude plant?

The next step is to re-identify the plant model for ZPos(altitude) control.
I plan to finish that by using the PID tune APP (refer to the webinar from Mathworks).
image
So the ZPos plant transfer function is: 0.99217/s/(0.2486*s+1).

How to tune speed loop PID parameters?

Hi everyone?
I am having difficulties tuning the speed loop PID parameters. I followed #2 to get a speed curve and then I changed the speed setpoint to step function according to this: #4. After that I was able to get speed loop step response like this:
image
Speed loop P=2, I=6, D=0.324786114614273, N=19.7366420228035, ITAE=2.35

How to convert Fractional DD to discrete?

Finally, we found the reason. I used Fractional DD block in the simulator, however, it is a continuous block, I need to change it to discrete block. Here is what we did:
image
image
I added a new Edit to enter sampling period(Ts).
image
Then I added a c2d command to change the transfer function to discrete.

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.