Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MobsyaBot opened this issue Apr 18, 2018 · 0 comments
Closed

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

MobsyaBot opened this issue Apr 18, 2018 · 0 comments

Comments

@MobsyaBot
Copy link
Collaborator

Issue by stephanemagnenat
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:

  • 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.
@MobsyaBot MobsyaBot added the VPL2 label Apr 18, 2018
@mbonani mbonani reopened this May 16, 2018
@mbonani mbonani added the Wish label May 16, 2018
@mbonani mbonani closed this as completed Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants