You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
516 B
Go

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 ""
}