leptontest

package
v0.0.0-...-28290d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package leptontest implements a fake Lepton implementation.

Index

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 New

func New() (*LeptonFake, error)

New returns a mock 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) GetStatus

func (l *LeptonFake) GetStatus() (*cci.Status, error)

func (*LeptonFake) GetTemp

func (l *LeptonFake) GetTemp() (physic.Temperature, error)

func (*LeptonFake) GetTempHousing

func (l *LeptonFake) GetTempHousing() (physic.Temperature, error)

func (*LeptonFake) GetUptime

func (l *LeptonFake) GetUptime() (time.Duration, error)

func (*LeptonFake) NextFrame

func (l *LeptonFake) NextFrame(img *lepton.Frame) error

func (*LeptonFake) RunFFC

func (l *LeptonFake) RunFFC() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL