You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
write 1/0 in the start/end of the queue
pop from the start/end of the queue
clear a queue
The corresponding event block could provide:
compare the two queues lengths (same, smaller, larger)
compare the two queues content (lower, smaller, larger), with empty values treated as zeros.
The text was updated successfully, but these errors were encountered:
Thursday Jun 15, 2017 at 19:36 GMT
Originally opened as aseba-community/thymio-vpl2#92
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:
The text was updated successfully, but these errors were encountered: