Documentation
¶
Overview ¶
Package leptontest implements a fake Lepton implementation.
Index ¶
- type Lepton
- type LeptonFake
- func (l *LeptonFake) Bounds() image.Rectangle
- func (l *LeptonFake) Close() error
- func (l *LeptonFake) GetFFCModeControl() (*cci.FFCMode, error)
- func (l *LeptonFake) GetSerial() (uint64, error)
- func (l *LeptonFake) GetShutterPos() (cci.ShutterPos, error)
- func (l *LeptonFake) GetStatus() (*cci.Status, error)
- func (l *LeptonFake) GetTemp() (physic.Temperature, error)
- func (l *LeptonFake) GetTempHousing() (physic.Temperature, error)
- func (l *LeptonFake) GetUptime() (time.Duration, error)
- func (l *LeptonFake) NextFrame(img *lepton.Frame) error
- func (l *LeptonFake) RunFFC() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lepton ¶
type Lepton interface { GetFFCModeControl() (*cci.FFCMode, error) GetSerial() (uint64, error) GetShutterPos() (cci.ShutterPos, error) GetStatus() (*cci.Status, error) GetTemp() (physic.Temperature, error) GetTempHousing() (physic.Temperature, error) GetUptime() (time.Duration, error) NextFrame(img *lepton.Frame) error Bounds() image.Rectangle RunFFC() error }
Lepton reads and controls a FLIR Lepton. This interface can be mocked.
type LeptonFake ¶
type LeptonFake struct {
// contains filtered or unexported fields
}
LeptonFake is a fake for lepton.Lepton.
func (*LeptonFake) Bounds ¶
func (l *LeptonFake) Bounds() image.Rectangle
func (*LeptonFake) Close ¶
func (l *LeptonFake) Close() error
func (*LeptonFake) GetFFCModeControl ¶
func (l *LeptonFake) GetFFCModeControl() (*cci.FFCMode, error)
func (*LeptonFake) GetSerial ¶
func (l *LeptonFake) GetSerial() (uint64, error)
func (*LeptonFake) GetShutterPos ¶
func (l *LeptonFake) GetShutterPos() (cci.ShutterPos, error)
func (*LeptonFake) GetTemp ¶
func (l *LeptonFake) GetTemp() (physic.Temperature, error)
func (*LeptonFake) GetTempHousing ¶
func (l *LeptonFake) GetTempHousing() (physic.Temperature, error)
func (*LeptonFake) RunFFC ¶
func (l *LeptonFake) RunFFC() error
Click to show internal directories.
Click to hide internal directories.