goflying

package module
v0.0.0-...-7e8b5be Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 6 Imported by: 0

README

ahrs

Go package implementing an Attitude and Heading Reference System (AHRS) for use in the stratux package, including simulation.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debugging bool
View Source
var Logger logger = log.New(io.Discard, "", log.LstdFlags)

Functions

func Debug

func Debug(v ...any)

func Debugf

func Debugf(format string, v ...any)

func Debugln

func Debugln(v ...any)

Types

type Celsius

type Celsius float64

func (Celsius) String

func (t Celsius) String() string

func (Celsius) ToKelvin

func (t Celsius) ToKelvin() Kelvin

type Feet

type Feet float64

func (Feet) String

func (d Feet) String() string

type HPa

type HPa float64

func (HPa) String

func (p HPa) String() string

type I2CBus

type I2CBus struct {
	I2CBus embd.I2CBus
}

I2CBus wraps an I2CBus interface with debugging support

func (*I2CBus) Close

func (b *I2CBus) Close() error

func (*I2CBus) ReadByte

func (b *I2CBus) ReadByte(addr byte) (byte, error)

func (*I2CBus) ReadByteFromReg

func (b *I2CBus) ReadByteFromReg(addr, reg byte) (byte, error)

func (*I2CBus) ReadBytes

func (b *I2CBus) ReadBytes(addr byte, num int) ([]byte, error)

func (*I2CBus) ReadFromReg

func (b *I2CBus) ReadFromReg(addr, reg byte, value []byte) error

func (*I2CBus) ReadWordFromReg

func (b *I2CBus) ReadWordFromReg(addr, reg byte) (uint16, error)

func (*I2CBus) WriteByte

func (b *I2CBus) WriteByte(addr, value byte) error

func (*I2CBus) WriteByteToReg

func (b *I2CBus) WriteByteToReg(addr, reg, value byte) error

func (*I2CBus) WriteBytes

func (b *I2CBus) WriteBytes(addr byte, value []byte) error

func (*I2CBus) WriteToReg

func (b *I2CBus) WriteToReg(addr, reg byte, value []byte) error

func (*I2CBus) WriteWordToReg

func (b *I2CBus) WriteWordToReg(addr, reg byte, value uint16) error

type Kelvin

type Kelvin float64

func (Kelvin) String

func (t Kelvin) String() string

type Kilometers

type Kilometers float64

func (Kilometers) String

func (d Kilometers) String() string

func (Kilometers) ToFeet

func (d Kilometers) ToFeet() Feet

type RelativeHumidity

type RelativeHumidity float64

func (RelativeHumidity) String

func (f RelativeHumidity) String() string

Directories

Path Synopsis
Package ahrs implements a Kalman filter for determining aircraft kinematic state based on inputs from IMU and GPS
Package ahrs implements a Kalman filter for determining aircraft kinematic state based on inputs from IMU and GPS
The Kalman computation uses a Kalman Filter to estimate the K and L. It works by using the measurement of the magnitude of the magnetic field
The Kalman computation uses a Kalman Filter to estimate the K and L. It works by using the measurement of the magnitude of the magnetic field

Jump to

Keyboard shortcuts

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