Giter VIP home page Giter VIP logo

Comments (2)

christophe0606 avatar christophe0606 commented on May 24, 2024

@g-berthiaume Sampling period is only useful to make a correspondence between the continuous time version of your PID and the discrete time version.

If you remain only in discrete time, you don't really need a sampling period. But of course, the coefficients will be different since at the end your discrete time system must work with real sampled signals.

Said differently, you can imagine that dt is part of the definition of the constant.

So, for a given continuous constant K, you'll get different discrete values K' where K' is K/dt or K dt depending on the constant.

But for the CMSIS-DSP implementation, you only care about K'.

Also, the correspondence between continuous and discrete is not only about the sampling time but also how the derivative and integral are approximated.

I don't know what method is used by CMSIS-DSP for integration : forward Euler, backward, trapezoidal ...

I have not been able to derive above formula from Laplace version of the PID.

I'll need to spend more time on it to find what method was used and to improve the documentation.

The discrete PID may be more complex than the one provided by CMSIS-DSP. It depends on how the discrete approximation is computed from the continuous one.

from cmsis-dsp.

g-berthiaume avatar g-berthiaume commented on May 24, 2024

Thanks for your detailed answer. I now understand the K' silent assumption.
Let me know if you find something.

Thanks

from cmsis-dsp.

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.