Skip to content

Feat (Logic Analyzer): Auto Recapture and Capture Time slider #677

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

Merged
merged 1 commit into from
Apr 10, 2021

Conversation

cynthi8
Copy link
Contributor

@cynthi8 cynthi8 commented Mar 3, 2021

Capture time slider is changed to allow for larger values and more
fine-tuned control. Auto Recapture checkbox added to have the logic
analyzer continuously recapture until an event is detected.

The Graph component is receiving the LA data and if a capture has no
event within it and the auto recapture is on, the LA is toggled
back on.

Standarized UI to use μs which is converted to ms for the backend communication.

Fix (Logic Analyzer): Define inputCheck

The CustomDialog dispatch needs an inputCheck function to be defined.
The Logic Analyzer capture time slider will always be an
non-negative float so inputCheck will check for that.

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

No tests or docs were added. Do we have a unit test framework for UI elements that need parts of the App to function (and thus can't be used in Storybook)?

Where should I add new functionality documentation?

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
  • Bug fix
  • Feature implementation
  • Doc updates
  • What changes have you introduced?

Fixes #665

Correct and consistent units and values

Fixed. X axis and capture time are μs. Capture time is converted to ms to work with the logic analyzer configuration backend.

Explanation of, and correctly functioning, Capture Time setting

Fixed. Dialog input works and range is extended to up to a second (1000000 μs)

It would be better if we can just keep capturing until some trigger event actually happens. That is, if no events are detected, just capture again, until something is captured.

Added. Auto recapture checkbox will retrigger the LA if no events were captured.

  • Does this PR introduce a breaking change?
    No

  • Preview / Steps to verify your work:
    Logic Analyzer is functional, capture time slider and dialog options work. Auto recapture functionality works.

Screenshot of UI:
image

Capture time slider is changed to allow for larger values and more
fine-tuned control. Auto Recapture checkbox added to have the logic
analyzer continously recapture until an event is detected.

The Graph component is recieving the LA data and if a capture has no
event within it and the auto recapture is on, the LA is toggled
back on.

Standarized UI to use μs which is converted to ms for the backend communication.

Fix (Logic Analyzer): Define inputCheck

The CustomDialog dispatch needs an inputCheck function to be defined.
The Logic Analyzer capture time slider will always be an
non-negative float so inputCheck will check for that.
@cynthi8 cynthi8 force-pushed the logic-analyzer-fix branch from ffe4a3b to 8f86b9d Compare March 3, 2021 01:49
@cynthi8 cynthi8 marked this pull request as ready for review March 3, 2021 01:59
@orangecms orangecms merged commit 5ae2b03 into fossasia:development Apr 10, 2021
@cynthi8 cynthi8 deleted the logic-analyzer-fix branch April 20, 2021 06:58
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

Successfully merging this pull request may close these issues.

Logic Analyzer display, functional and unit issues
2 participants