idasen

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverDesk

func DiscoverDesk(timeout int64) (*desk, error)

func SetDebug

func SetDebug()

Types

type Configuration

type Configuration struct {
	MacAddress string             `mapstructure:"mac_address"`
	Positions  map[string]float64 `mapstructure:"positions"`
	Timeout    int64              `mapstructure:"timeout"`
}

type Idasen

type Idasen struct {
	// contains filtered or unexported fields
}

func New

func New(config Configuration) (*Idasen, error)

func (*Idasen) Close

func (i *Idasen) Close()

func (*Idasen) HeightInMeters

func (i *Idasen) HeightInMeters() (float64, error)

func (*Idasen) MoveDown

func (i *Idasen) MoveDown() error

func (*Idasen) MoveStop

func (i *Idasen) MoveStop() error

func (*Idasen) MoveToTarget

func (i *Idasen) MoveToTarget(targetInMeters float64) error

func (*Idasen) MoveToTargetWithUpdateChannel added in v0.5.1

func (i *Idasen) MoveToTargetWithUpdateChannel(targetInMeters float64, updateCh chan float64) error

func (*Idasen) MoveUp

func (i *Idasen) MoveUp() error

Jump to

Keyboard shortcuts

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