Ardumower software design: Unterschied zwischen den Versionen
Aus www.wiki.ardumower.de
Frank (Diskussion | Beiträge) K (→Finite state machine) |
(→Finite state machine) |
||
| Zeile 7: | Zeile 7: | ||
<gallery> | <gallery> | ||
| − | File: | + | File: Ardumower_states.png |
</gallery> | </gallery> | ||
Version vom 4. April 2015, 23:24 Uhr
This page describes some internals of the Ardumower software architecture.
Finite state machine
Main component of the software is a so called 'finite state machine', that means there exists a set of states ("OFF", "FORWARD", "ROLL", etc.) that the robot can be in. Depending on events (sensor is triggering etc.), the robot will enter a new state.
State diagram
Implemented updates:
- If obstacle during reverse => roll
- If obstacle during roll => forward