aseba-community / thymio-vpl2

Next generation VPL for Thymio using Qt Quick from Qt 5.x
GNU Lesser General Public License v3.0
2 stars 5 forks source link

Add blocks to access double-ended queues of bits #92

Open stephanemagnenat opened 7 years ago

stephanemagnenat commented 7 years ago

Assuming we implement the FSM mode, the old state variables as in VPL1 are not useful for states any more. However, variables can be used for something else than states in the sense of program counter.

An idea to implement a variable model that is powerful and quite simple is the one of a binary double-ended queue. Assuming that VPL provides two binary queues and a block that can operate on them, many operations become possible, such as reading and comparing bar codes. The corresponding action block could provide the following operations:

The corresponding event block could provide: