wentasah / msfsm

Simple yet powerful C++ finite state machine library
MIT License
13 stars 3 forks source link

No Example or Documentation for usage in nested state machines #1

Open smsm2014 opened 3 years ago

smsm2014 commented 3 years ago

When try to use msfsm in making nested FSMs, I didn't find any documentation or example about usage.

wentasah commented 3 years ago

Unfortunately, documentation is not yet finished. You can find the example in motor.cpp. Motor::Homing is a FSM nested in Motor FSM.

Let me know if you need some help when trying to understand the code.

fredhur commented 2 years ago

Hi wentasah, I appereciate about your code. and I have a same opinion with smsm2014. it is kinda complicate to understand nested fsm. ( I really thx about your implementation of nested fsm . it is too simple to implement )

if that is not possible, can you please more easy example in nested fsm?

best regards,

wentasah commented 2 years ago

Hi @fredhur. You're right that the motor example with nested FSM is not easy to grasp. I created a simpler example. And by doing that after few years from developing the library, I can acknowledge that nested FSMs are tricky. Is the example clearer for you? If not, I should really finish the documentation :-)

fredhur commented 2 years ago

Thanks wentasah, I understand your example more easier than motor.cpp.

It is just quadruped , if your documentation have a example ( bulb, elevator) with state chart, it is more pefect documentation than before!

best regards