-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle multiple FSMs #39
Comments
add a context as a container to hold the instance replace the global static pointer |
Hello, I have a need to create a vector of FSMs so that I can maintain individual states. The size of the vector is dynamic and will be defined during runtime. Any idea how I can do this?? I would want something like this vec[0]::dispatc(event0); |
Joining the question as well. @digint would like to see an example for that if exists? Maybe the solution is use C++ |
I have the need to have, in parallel, several FSM that are exactly the same, but that will be in different states as they respond to a button, but that button is different for all of them.
Considering tinyfsm FSMs are not instances, what is the best way to handle this?
The text was updated successfully, but these errors were encountered: