Giter Club home page Giter Club logo

fsm-framework's Issues

函数指针的参数不都是为空的情况,要如何处理

请问:

在代码里面
void GetUp();
void Go2School();
这些触发事件都是没有参数的,假如它们都有参数,而且每个的参数不同。

那么,下面这个数据结构里面的函数指针就都不相同了
typedef struct FsmTable_s
{
int event; //事件
int CurState; //当前状态
void (*eventActFun)(); //函数指针
int NextState; //下一个状态
}FsmTable_t;

请问,如果是这种情况,要如何处理?

很好的框架,希望能完善,壮大

1,结果描述,比如起床,上学等每一个动作都会有成功或者失败(失败原因),一整个任务循环结束(比如小明的一天结束)也会有一个结果上报。
2,状态 并行(小明吃饭的时候,玩手机,跟妈妈说话,这3个状态),等待多个事件满足后,统一进入下一状态,不满足,进入另一状态

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.