Repository navigation
cymon-lib 0.2: C++20, interrupt-safe API, DSDL 0.1, UNIMOC-ready - #2
Merged
Merged
Conversation
- C++20 baseline (was cxx_std_23 in CMake, C++17 in the README), CMake 3.20. - Variables are read through const float* instead of std::function: Tick() is allocation-free, lock-free and free of function pointers, so it can run in a zero-latency interrupt. No heap use left in the library. - Atomic capture state (Idle/Configured/Armed/Triggered/Complete) as the contract between Tick() and the Cyphal thread; RequestTrigger() and TakeTriggerEvent() for cross-node triggering. - Sample period rounded to a decimation of the tick period; the trigger is evaluated only after the pre-trigger part is recorded. - UNIMOC naming (PascalCase methods), .clang-format and .clang-tidy rules; clean under the UNIMOC warning set with -Werror. - DSDL 0.1 replaces 1.0 (the 1.0 files lacked @extent/@Sealed and did not compile); new CaptureState, Error and TriggerMode.IMMEDIATE. - scripts/check_dsdl.sh: pydsdl/Nunavut C generation plus a compile of the integration guide example; CI runs it with GCC and Clang builds, tests, clang-tidy and clang-format 22.1.1. - README rewritten; docs/integration.md describes the firmware side. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKjxMYUjfvU5kDumYNNQY8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKjxMYUjfvU5kDumYNNQY8
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.
cymon-lib 0.2: C++20, interrupt-safe API, DSDL 0.1, UNIMOC-ready
is allocation-free, lock-free and free of function pointers, so it can run
in a zero-latency interrupt. No heap use left in the library.
contract between Tick() and the Cyphal thread; RequestTrigger() and
TakeTriggerEvent() for cross-node triggering.
evaluated only after the pre-trigger part is recorded.
clean under the UNIMOC warning set with -Werror.
compile); new CaptureState, Error and TriggerMode.IMMEDIATE.
integration guide example; CI runs it with GCC and Clang builds, tests,
clang-tidy and clang-format 22.1.1.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01AKjxMYUjfvU5kDumYNNQY8