StateSmith / StateSmith

A state machine code generation tool suitable for bare metal, embedded and more.
Apache License 2.0
590 stars 53 forks source link

simulator does not show composite state internal behaviors #416

Open yoflippo opened 1 week ago

yoflippo commented 1 week ago

I noticed a difference between the schematic/drawing and the simulation (sim.html). I also confirmed that this happens with plantuml: image

Here you can find the files

I love Statesmith and am using the sim.html files in my classroom (SysML, statemachine diagram) :+1:

adamfk commented 1 week ago

Thanks! ❤️ I wish I had a tool like this when I was a student.

This issue is currently caused by a limitation in mermaid.js (the library we use for the simulator visualization). https://github.com/StateSmith/StateSmith/issues/324

I've just submitted another potential work around idea to the mermaid.js project: https://github.com/mermaid-js/mermaid/issues/5966

I'm hopeful they can implement something that allows us to work around this limitation.

This page has some info on our current simulator limitations: https://github.com/StateSmith/StateSmith/wiki/Simulator