fsm-framework's People
Forkers
skyformat99 xiezhihua001 clarephang hoocr rumpleeeeee wanshuchao eternalsunshine1314 sparkhou goldeastlight arcomu saber-hyw focusworkspace yichengzhong niuguangxue zjjwoll sinbrive ottosyslab assume20 xeekst lengl111 duanlangtaosha wesrc-yin onivan cxmmeg mynameisczy ericma2014 icqw1983 alonlyme pycoming lsc12318 duanyali sly-guo wangyaning45 gogoto2fsm-framework's Issues
很好的框架,希望能完善,壮大
1,结果描述,比如起床,上学等每一个动作都会有成功或者失败(失败原因),一整个任务循环结束(比如小明的一天结束)也会有一个结果上报。
2,状态 并行(小明吃饭的时候,玩手机,跟妈妈说话,这3个状态),等待多个事件满足后,统一进入下一状态,不满足,进入另一状态
函数指针的参数不都是为空的情况,要如何处理
请问:
在代码里面
void GetUp();
void Go2School();
这些触发事件都是没有参数的,假如它们都有参数,而且每个的参数不同。
那么,下面这个数据结构里面的函数指针就都不相同了
typedef struct FsmTable_s
{
int event; //事件
int CurState; //当前状态
void (*eventActFun)(); //函数指针
int NextState; //下一个状态
}FsmTable_t;
请问,如果是这种情况,要如何处理?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.