tinyfsm icon indicating copy to clipboard operation
tinyfsm copied to clipboard

A simple C++ finite state machine library

Results 24 tinyfsm issues
Sort by recently updated
recently updated
newest added

Is it possible to change the initial_state at runtime? I am storing the the states of my machine in the database and at restart, I would like to start from...

question

Since declare `typedef F const * state_ptr_const_t;` in class Fsm, we cannot get more than one instance for a specific Fsm. Is there any way to avoid this?

question

TinyFSM v.0.3.2 can't be compiled using IAR ARM compiler (V8.20.2): ![image](https://user-images.githubusercontent.com/65347993/81935999-c3089d00-95f1-11ea-917d-85de81a8ef77.png) The compiler seems to think that the derived state classes are unreleated to the base class. Using GCC the...

upstream bug

It's been quite some time since I've developed cpp but I'm stuck on trying to separate out the state classes from the State Machine Class's cpp file. No matter how...

question

Hi, I like you take on a simple state machine. When building with -Wnon-virtual-dtor you got some warning. I would add ` virtual ~MooreMachine() noexcept = default;` to the MooreMachine...

question

Hi. I have created two state diagrams for the readme file. They are graphical png files though if you actually prefer ascii-art, it is possible to generate at .

This version is not fully compatible with the 0.3.2 version. The major difference is that when transit is used, the compiler must be able to see the full declaration of...

Might be a dumb question. But my understanding is that the `react` method of each state is used to update the current state. Is there some way of including an...

question

This makes it a bit simpler to include in projects using Cmake. I've tested installation and project builds on macOS and Ubuntu 18.04.

I'm, not too savvy with C++ templates and would like some help with this topic. I would like to print a stribg for example with the state of my SM.

question