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

Fix frequency calculation at logscale sweeps #705

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

Peter3579
Copy link
Contributor

In case that logarithmic sweep is enabled in the sweep settings, the (internally linearly sampled) segments of 101 data points do not have a proper logarithmic spacing. When multiple segments are used, the quotient of end_frequency by start_frequency for all segments should be the same. Also a small error in the get_frequency() iterator is fixed.

See also: #701

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • [] Feature
  • [] Code style update (formatting, renaming)
  • [] Refactoring (no functional changes, no API changes)
  • [] Build-related changes
  • [] Documentation content changes
  • [] Other (please describe):

What is the current behavior?

In case that logarithmic sweep is enabled in the sweep settings, the (internally linearly sampled) segments of 101 data points do not have a proper logarithmic spacing.

#701

What is the new behavior?

Frequencies with the correct spacing are calculated.

Does this introduce a breaking change?

  • [] Yes
  • No

Other information

@Peter3579 Peter3579 requested a review from zarath as a code owner June 21, 2024 08:28
@zarath
Copy link
Collaborator

zarath commented Jun 21, 2024

Great! Thank you!

@zarath zarath merged commit a2f9044 into NanoVNA-Saver:main Jun 21, 2024
2 checks passed
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.

2 participants