package device // do sensor and methods import ( "sync" ) type DOManager struct { // do sensor manager *SensorManager *Atlas sync.RWMutex } func NewDOManager() (*DOManager, error) { // atlas delays a := &Atlas{ CalDelay: 1300, ReadDelay: 600, } sm := NewSensorManager() return &DOManager{ Atlas: a, SensorManager: sm, }, nil } func (m *DOManager) Start() error { // start sensor manager return m.SensorManager.Start(m.Atlas.TakeReading) } func (m *DOManager) String() string { // TODO return "" }