imuvectornav

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package imuvectornav implement vectornav imu

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVectorNav

NewVectorNav connect and set up a vectornav IMU over SPI. Will also compensate for acceleration and delta velocity bias over one second so be sure the IMU is still when calling this function.

Types

type AttrConfig

type AttrConfig struct {
	Board string `json:"board"`
	SPI   string `json:"spi"`
	Speed *int   `json:"spi_baud_rate"`
	Pfreq *int   `json:"polling_freq_hz"`
	CSPin string `json:"chip_select_pin"`
}

AttrConfig is used for converting a vectornav IMU MovementSensor config attributes.

func (*AttrConfig) Validate

func (cfg *AttrConfig) Validate(path string) ([]string, error)

Validate ensures all parts of the config are valid.

Jump to

Keyboard shortcuts

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