You will usually want to set callbacks for things such as timers and sensor in the state _ entry ( ) callback of the state to put your object into a useful condition for that state 計(jì)算器和感應(yīng)器需要在狀態(tài)輸入函數(shù)調(diào)用時(shí)設(shè)置好,以便對(duì)象適合于那種狀態(tài)下使用
You will usually want to set callbacks for things such as timers and sensor in the state _ entry ( ) callback of the state to put your ob < x > ject into a useful condition for that state 計(jì)算器和感應(yīng)器需要在狀態(tài)輸入函數(shù)調(diào)用時(shí)設(shè)置好,以便對(duì)象適合于那種狀態(tài)下使用
The state _ entry event occurs whenever a new state is entered , including program start , and is always the first event handled . no data is passed to this event handler 每一個(gè)狀態(tài)輸入時(shí)候,狀態(tài)輸入事件都會(huì)發(fā)生,其中包括程序開始,第一個(gè)事件指針開始,沒有數(shù)據(jù)傳入這個(gè)指針內(nèi)