Most of simple microcontroller applications can be modelled through finite-state machine (FSM). This is a simple and powerful approach. Now the question is “how should I implement it?”. Using an object oriented language like C++ usually lead to the implementation of the state pattern. I had to implement it using C for an MSP430 microcontroller.
Well, having a PC to control a rover isn’t really cool. Now we try to control the rover from an android device. This first implementation tries to be as simple as possible. Everything start with BluetoothChat example, available with Android sources. For the joystick part it happens that there is a widget that does exactly […]
adevs Adevs (A Discrete EVent System simulator) is a C++ library for constructing discrete event simulations based on the Parallel DEVS and Dynamic DEVS (dynDEVS) formalisms. DEVS has been applied to the study of social systems, ecological systems, computer networks and computer architecture, military systems at the tactical and theater levels, and in many other […]
Test Driven Development I’ve discovered TDD reading “Agile Java: Crafting Code with Test-Driven Development” from Jeff Langr, and I’ve realized that this is the way to go, but sadly I’ve never applied this technique in real projects… Doing most of the programming in C and C++ specially for embedded systems, I’ve abandoned the idea of […]
Qt’s doc has a beautiful introduction and overview about thread problems and implementations: Threading basics. The main point is that most of the time you don’t need a separate thread, and if you can avoid it, you should do it!