magnetometer

package
v0.0.0-...-f2d3015 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOk        = rmap.NoError
	ErrNotAligned   = 1
	ErrInvalidAddr  = 2
	ErrInvalidValue = 3
	ErrCorruptData  = 4
)
View Source
const (
	RegErrors    = 0
	RegPower     = 1
	RegLatch     = 2
	RegX         = 3
	RegY         = 4
	RegZ         = 5
	NumRegisters = 6
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MeasurementDelay time.Duration
	LogicalAddress   uint8
	DestinationKey   uint8
}

func (Config) Construct

type MagneticEnvironment

type MagneticEnvironment interface {
	MeasureNow() (x, y, z int16)
}

func MakeRandomMagneticEnvironment

func MakeRandomMagneticEnvironment(ctx model.SimContext) MagneticEnvironment

Jump to

Keyboard shortcuts

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