1 year, 9 months ago.

How to switch between different actions requiring each precise time control (discrete PID)?

Hello,

I would like to code the following with mbed os 5 :

1\Measure of analog and digital values on pins every T micro seconds. 2\Compare these measures to fixed values every T micro seconds 3\According the result of above comparisons, execute one of 5 actions which are modes of regulation and one mode of Default. Each regulation includes a discrete PID, for which I would like to have a constant sampling time >=T

We can not have more than 1 action running.

Do you know how to do it ? with threads?

Regards

Be the first to answer this question.