Repository navigation
feat(sim): Refactor hardware drivers and implement I2C bus abstraction - #16
Merged
Merged
Conversation
…e related interfaces
…ate related components
…update related components
…ta saving validation
Awesome-Ace22
merged commit Nov 6, 2026
1adf5db
into
tests/novaground-test-suite
2 of 16 checks passed
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.
This pull request introduces a major refactor to support simulated hardware for development and CI, adds comprehensive documentation for the simulation mode, and improves the architecture and testability of the codebase. The most significant changes are the introduction of the
novaMockbuild (the real application running on simulated hardware), a clear separation between hardware interfaces and implementations, and improved test coverage with scenario-driven simulation. Additionally, the PR updates build scripts, documentation, and controller interfaces to enable these features.Simulation and Build System Enhancements:
novaMockexecutable that runs the real application logic on simulated hardware, using a scenario-driven simulator for DAQ, relays, servos, and GPIO, making it possible to build and test on non-Pi systems and in CI. The build system (meson.build) now conditionally buildsnovaMockand its integration test if dependencies are available. [1] [2] [3] [4]Documentation Improvements:
docs/simulation.mddescribing how the simulated hardware works, how to use scenario files to drive tests, and how to run tests in CI or on a laptop. Updateddocs/setup.mdto clarify the purpose and capabilities ofnovaMock. [1] [2]Controller and Interface Refactoring:
GpioController,RelayController) to depend on abstract interfaces (DigitalIo,RelayBank) instead of hardware-specific implementations, improving modularity and enabling simulation. [1] [2] [3] [4] [5]Sampling and Loop Improvements:
std::stop_token, improving shutdown behavior and testability. Added newsampler.cppwith single-sample and loop functions for DAQ and GPIO, supporting both real and simulated hardware. [1] [2] [3] [4] [5]Testing and CI Integration:
novamock_smoke) that runs the full application on simulated hardware, verifies telemetry and data logging, and runs automatically in CI if dependencies are present. [1] [2]These changes collectively enable robust simulation, testing, and development workflows without requiring physical hardware.
novaMocktarget and scenario-driven simulated hardware; updatedmeson.buildand CI to support simulation and integration testing. [1] [2] [3] [4]docs/simulation.mdand updateddocs/setup.mdto explain simulation and usage. [1] [2]DigitalIo,RelayBank) for better modularity and simulation support. [1] [2] [3] [4] [5]novaMockand improved test coverage in CI. [1] [2]