Create Weight class
Closed this issue · 1 comments
patrickanguyen commented
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()
}
Requirements
- Create
lib/Weight/Weight.hpp
andlib/Weight/Weight.cpp
withWeight
class Weight
class should take andIWeight& weightSensor
as parameters for the constructor. It isIWeight&
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 commented
Resolves in #31