Hi there, i have a c++ embedded system project with a main EFSM (PCOXS Central pumps) with other objects to control: n production pumps (0, max 8), n distribution pumps (0, max 8).
The topic is oenology.
Each sub object (production pump or distribution pump) has an EFSM too.
What I have tried:
I saw only the case with 1 EFSM machine using switch and enum states. One state graph function. There is also a timer class to perform action when the timer isOver.
How can i solve that problem with multiple EFSM ? Using threads ?
I'm thinking about c++ composition but i can't imagine the problem with more than 1 EFSM.
Thanks in advance