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 "decimate" capability to AnalyzePrint #395

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

h4yn0nnym0u5e
Copy link
Contributor

Added the capability to analyze_print to "decimate" the output, which may make it a slightly more useful tool for those not possessed of a decent oscilloscope. Took the opportunity to have a go at the documentation improvements I raised as issue #394, and create an example.

Jonathan Oakley added 3 commits April 6, 2021 14:16
analyze_print.cpp - remove inner loop in update()'s STATE_PRINTING case, and re-code so we step on by the decimation count for each printed sample, until we run out of block; also caters for decimation counts greater than one block size
analyze_print.h - create decimate_length and initialise to 1; move offset in here as it needs to be stored between calls to update()
analyze_print.cpp - like the title says... the manual states "The pointer may be NULL, *which should be treated as if a block of silent zeros was received*."
analyze_print.h - don't allow 0 as decimation length, it would cause continuous high speed output
gui/index.html - update documentation
keywords.txt - add decimate keyword
examples/Analysis/Print/Print.ino - example of how to use it, tailored to Arduino Serial Plotter
@h4yn0nnym0u5e h4yn0nnym0u5e changed the title Features/analyze print/decimate Add "decimate" capability to AnalyzePrint Apr 6, 2021
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.

1 participant