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

Create interface for weight sensor #11

Closed
patrickanguyen opened this issue Apr 21, 2022 · 0 comments · Fixed by #14
Closed

Create interface for weight sensor #11

patrickanguyen opened this issue Apr 21, 2022 · 0 comments · Fixed by #14
Assignees

Comments

@patrickanguyen
Copy link
Contributor

Description

Create an interface class for the distance sensor called IWeight. We are creating an interface, so we can create two classes for our mock distance sensor MockWeight class, and our real hardware sensor LoadCellWeight class. We are having the mock sensor so we can easily create unit tests without relying on real hardware.

Requirements

  • Create a folder inside lib called Weight(All of the fullness related classes will go here) with the file IWeight.hpp
  • Create a class called IWeight
  • The class should have a pure virtual function called getWeight() that returns a int32_t (you might need to #include <cstdint>)
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 a pull request may close this issue.

3 participants