Quote:
Originally Posted by compwiztobe
Since the delays total to 3 seconds, I think it will take 3 seconds to run this while loop once when you start the kicker sequence... [which] may cause some undesirable overhead.
|
I believe the "watchdog delay and feed" blocks waiting for the specified time so the overhead should be minimal.
Quote:
Originally Posted by compwiztobe
A state machine is probably what you want here,
|
A state machine is a viable alternate way to do this sort of thing, but many teams have successfully used a concurrent periodic task.
We were successful using both approaches. We started out using state machines, then switched to using event-triggered periodic tasks. The periodic tasks approach is easier to look at and see the sequential flow. Makes it easier for peer review, particularly for inexperienced programmers.
~