Repository navigation
Commander: parse once, improve parsing - #598
Open
Moddingear wants to merge 1 commit into
Open
Moddingear wants to merge 1 commit into
Moddingear wants to merge 1 commit into
Conversation
Member
|
Ok looks nice. Like for example monitoring variable setting? |
Collaborator
Author
|
@askuric Yep, tested with my UI, it works like before. I didn't test with the webui since Firefox doesn't have support for webserial. |
Moddingear
force-pushed
the
commander_parse_once
branch
3 times, most recently
from
November 26, 2026 10:39
0084864 to
f216356
Compare
Moddingear
force-pushed
the
commander_parse_once
branch
from
November 26, 2026 10:42
f216356 to
a8ec842
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Current parser parses anywhere between 1 to 3 times a command. Also it uses atof (double) instead of atoff (float).
It can also be thrown off by commands coming in too fast, so it ends up getting malformed commands, and unpacking a wrong value.
This makes sure that the unpacked command is correctly formed (letter then (optional) value then newline), and only parsed once. Anything before is discarded.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Tested on Phoque2 as part of a bigger set of changes.