zotbins/ZotbinsCore

Create Weight class

Closed this issue · 1 comments

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

Resolves in #31