I. design of state machine for access control system of automobile
State machine all states:
Entry Gate sensor (two states): Ture False (denoted by ET and EF, respectively)
Gate sensor (two states): Ture False (expressed in OT and of)
Landing lever (two states): Up-down (indicated by up and DW, respectively)
Traffic light (two states): Red Green (denoted by R and G respectively)
External events received by the state machine:
Car entry and Exit Access System area: Enter out (denoted by E and O, respectively)
Action generated by the state machine:
Movement of the landing lever: go up go down (indicated by Gu and GD respectively)
All state transitions of a State machine: (original state, new state, trigger condition, generating action)
Original state trigger condition new State/action
EF-(E)-ET
of-(O)-OT
Up-(OT) GW (action)
DW-(ET) GP (action)
R-(UP)-G
G-(DW)-B
Due to the stateflow of MATLAB is still learning, simple to establish a state flow graph (the error is certainly more), only to represent my personal design, such as:
Later, you will continue to learn to design the diagram in detail and correct the errors, and use MATLAB to generate code directly.
Two. Other tasks
Real-time operating system application exercises, the program can function and stop;
Practiced git's simple command operation and associated git with Guihub;
Simple understanding of Ode's functions and cases;
Real-time control software design second week job