In Automating Manufacturing systems by Hugh Jack, Chapter 11: Flowchart based design, 11.6: practice problems, question number 3. I've attached a photo of the book's solution (link 1) and an other one of my own solution (link 2). My problem with the book's solution is that after the start block, assuming the door is already closed, then the user would have to press the button twice according to the flowchart for the door to open.
The question is:
"Design a garage door controller using a flowchart. The behavior of the garage door controller is as follows, - there is a single button in the garage, and a single button remote control. - when the button is pushed the door will move up or down. - if the button is pushed once while moving, the door will stop, a second push will start motion again in the opposite direction. - there are top/bottom limit switches to stop the motion of the door. - there is a light beam across the bottom of the door. If the beam is cut while the door is closing the door will stop and reverse. - there is a garage light that will be on for 5 minutes after the door opens or closes."
Link 1:http://www.4shared.com/photo/YPA5d2kYce/image.html Link 2:http://www.4shared.com/photo/9yyZRsj8ba/image.html
Am I right? Or what am I missing? Do I have to assume a certain position of the object whenever faced with such type of questions?