fair-acc / gr-digitizers

GNU General Public License v3.0
3 stars 3 forks source link

TimingBlock: Initial sample and a bit of documentation #129

Closed wirew0rm closed 9 months ago

wirew0rm commented 11 months ago

Update readme with with information about building timing dependencies and switch from meson to cmake.

Add a simple UI example on how to get timing messages which is not yet a gnuradio block.

Screen capture of the UI with the picoscope application above to show the generated trigger pulses.

20231205-timing-tool

frankosterfeld commented 11 months ago

Cool, we might want to port the timing_receiver_simulated block from dev-4.0 branch and make sure it has a unified (settings) API with the real thing.

alexxcons commented 9 months ago

and switch from meson to cmake

Meh, that's a pity. Why did you have to do so ?

wirew0rm commented 9 months ago

and switch from meson to cmake

Meh, that's a pity. Why did you have to do so ?

That was mostly to keep the Readme in sync with the rest of the repository. This in turn depends on the meson adoption in graph-prototype/gnuradio4.0. We were experimenting there with having both cmake and meson in parallel to evaluate them, but the meson support is currently not up to date and disabled. Historically GNURadio uses some less standard cmake features for its OOT modules and it's not yet clear how this will translate to gr4.0 and eventually meson.

At the moment it might be a bit of a "the devil you know" kind of situation. It's also probably good to not judge cmake on cmake build systems written 10y ago, so we'll see where we end up.

alexxcons commented 9 months ago

and switch from meson to cmake

Meh, that's a pity. Why did you have to do so ?

That was mostly to keep the Readme in sync with the rest of the repository. This in turn depends on the meson adoption in graph-prototype/gnuradio4.0. We were experimenting there with having both cmake and meson in parallel to evaluate them, but the meson support is currently not up to date and disabled. Historically GNURadio uses some less standard cmake features for its OOT modules and it's not yet clear how this will translate to gr4.0 and eventually meson.

At the moment it might be a bit of a "the devil you know" kind of situation. It's also probably good to not judge cmake on cmake build systems written 10y ago, so we'll see where we end up.

Ok, thank you for the details!

sonarcloud[bot] commented 9 months ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 20 Code Smells

3.4% 3.4% Coverage
1.2% 1.2% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

wirew0rm commented 9 months ago

Look generally good. There some holes w.r.t. documentation and notably the plot.hpp needs some refactoring to be in line with the C++ core guidelines, GR 4.0 (naming guidelines), and other standards.

We should better fix that immediately rather than dragging this to the unknown future. Also there are some quite unsafe raw-pointer arithmetics that I am a bit scared of.

Thanks for the review and the suggestions, I tried to apply them and also reduce the SonarCloud issues to a minimum.

The clang build failures are due to a packaging error in clang's ubuntu repositories, the issue is known and will be fixed, there is unfortunately not much we can do here other than wait: https://github.com/llvm/llvm-project/issues/74766