Replies: 1 comment
-
Hello @nens90 . Sorry for the late reply and thank you for the compliment. Glad to know that the library is useful for other developers. :) As for your question, since your interval is quite high (1s) I'd recommend using HSM timer and callbacks. The reason I recommend to use a separate thread and getActiveStates API in a different discussion was because the requirements were different:
Using getActiveStates and a separate thread would have allowed to make sure that UI rendering does not depend on the main logic and can be executed in a predictable manner rather than relying on the amount of pending hsm events and any potentially slow callbacks. |
Beta Was this translation helpful? Give feedback.
-
Hi @igor-krechetov
Really cool project you have here 🤩
I'm interested in using your framework for a HSM which should manage different control strategies based on user input and a feedback loop.
The controller should run at a specific frequency every 1 sec.
Would you suggest to run the controller function as a callback in the HSM framework or run it in a separate task?
I see that my question has some similarities to the discussion on Game rendering #6
I was wondering why you suggested to use the getActiveState() API. In your documentation you state that is more a debugging feature Active States
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions