Embedded garage door opener simulation for QNX using generic state machine.