Project Engineer, Web Addict (Frankfurt/Main, Germany)

Posts Tagged ‘programming’

Updated Wordpress, Result: New Design and Layout, Loss of Recordings

As you might have seen allready, I’ve changed the layout and design of my website. This was due to an update to a more decent wordpress version and the incomaptibility of the old theme.

In combination with this update, as you might have seen too, mostly all of my recordings have been removed from the server by accident. I’ll bring them back up as soon as possible. Please give me some time to compensate, what went wrong during update.

I’ll also try to do some details work on layout and design and experimenting with plugins, as far my ideas will reach. If you’re experiencing anything unexpected, it’s most certainly me playing around.


Finite State Machine Matrix-Style-C-Implementation (Function Pointers Addon)

I posted my solution for Finite State Machines in C using Matrix. Jean-Marc (f1hdi.org) commented to that entry:

I would love to have the state event matrix not only returning a ‘next state’ and action to do BUT directly calling ‘actions’ functions. A long time ago , when I was at school, I wrote such ptr function call but can’t reproduce it now.
Basically , in your routine below, I would love to replace the ‘return’ by a call to a function which you would have its pointer in the matrix.
Any idea ?

The simple answer to Jean-Marc’s questions is “Yes” and I’m really sorry that I hadn’t got the time to answer sooner. The basic idea of using function pointers is the right choice to find a solution for this task.

(more…)


Finite State Machine Matrix-Style C Implementation

There are several implementations of finite state machines avaible, the only drawback most of them are suffering is that they are moore machines (under certain circumstances this means a large number of states) and changing the machines behaviour will change the whole code structure (this means low flexibility and the reprogramming may be a huge cause of defects).

I’d like to present an Implementation of a FSM, i’ve found during my student research project that is a mealy machine and does not require a reprogramming of the underlying structure.

(more…)