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