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

Improve handling of "button pressed" event #7

Open
astrabykin opened this issue Jul 1, 2019 · 1 comment
Open

Improve handling of "button pressed" event #7

astrabykin opened this issue Jul 1, 2019 · 1 comment

Comments

@astrabykin
Copy link
Contributor

Another improvement we should do is to ignore button pushes in certain states, to avoid that they can queue up. For example, if the player now pushes the button while the image is being analysed, it is being queued so that another image recognition starts immediately when the current one is finished.

@akoptelov
Copy link

By default if an event on the top of the queue is not accepted by any capsule is just dropped.

It looks like recognition result and push button events are put in the queue in the wrong order. Possibly this is because of how the HttpServer component is implemented. See rtapp_20190909_181616883000.zip.

It looks like raising the priority of push button event fixes the problem as it is handled in the state before any other event and discarded if not applicable.

@astrabykin please confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants