Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Add a mock interface, take two #4

Merged
merged 1 commit into from
Aug 20, 2021
Merged

Add a mock interface, take two #4

merged 1 commit into from
Aug 20, 2021

Conversation

theunkn0wn1
Copy link
Contributor

this PR adds a mock interface to facilitate testing of downstream code without access to the actual hardware.
This can facilitate testing in downstream libraries such as the ROS2 turret wrapper.

It shares the same outward interface as the Interface class it inherits, but does not connect to any external resources, and instead provides a mocked result when queried. This mock signal is a sine wave that increments in intervals of pi/4, matching the mathematical function state(t) = sin(t).

Same as #3 , except rebased against current master.

@theunkn0wn1 theunkn0wn1 merged commit ac96864 into master Aug 20, 2021
@theunkn0wn1 theunkn0wn1 deleted the feature/mock branch August 20, 2021 18:40
@theunkn0wn1 theunkn0wn1 restored the feature/mock branch August 20, 2021 20:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant