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 Weight class #25

Closed
patrickanguyen opened this issue Apr 29, 2022 · 1 comment
Closed

Create Weight class #25

patrickanguyen opened this issue Apr 29, 2022 · 1 comment
Assignees

Comments

@patrickanguyen
Copy link
Contributor

Description

Create Weight class that will call the weight sensor and returns the weight

Depends on #11

classDiagram
class Weight {
  -IWeight& weightSensor
  +int32_t getWeight()
}

Loading

Requirements

  • Create lib/Weight/Weight.hpp and lib/Weight/Weight.cpp with Weight class
  • Weight class should take and IWeight& weightSensor as parameters for the constructor. It is IWeight& so we can pass either the mock weight sensor or the hardware weight sensor and both will still function

This class may require future refactoring

@patrickanguyen
Copy link
Contributor Author

Resolves in #31

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

No branches or pull requests

3 participants