05-10-2024 02:32 PM
I created a for loop state machine. So I would like my state machine to start from Level 1, then on the "timer state" I want the timer to go up to 10 seconds before moving to the next level which is level 2, then level 3. Then repeat.
Right now, it keeps skipping the state timer without getting to 10 seconds.
Can someone help? I am also working on it myself.
Thank you!
Solved! Go to Solution.
05-10-2024 02:43 PM
Highly flawed
05-10-2024 02:53 PM
Hello Mr. Altenbach, Is this what you meant? Yes, I just noticed that led is not even turning on. I am working on it too. Maybe I should just stick with the traditional state machine taught in core 2 or 3.
05-10-2024 03:04 PM
05-10-2024 03:09 PM
Note that you don't want to have the wait depend on the loop rate, so use actual elapsed time as in this example that we already discussed long ago. remember?
05-14-2024 12:26 AM
Thank you, Mr. Altenbach! Yeah, I remember this. This really helps.