vimu

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentIMUFrame struct {
	IMUFrame
	// contains filtered or unexported fields
}

Functions

func InitIMU

func InitIMU() error

Init the IMU, must be run before you get a frame

func IsInited added in v1.2.1

func IsInited() bool

Check if IMU comms are initiated

func StopIMU

func StopIMU()

Stop the IMU. Stops comms loop

Types

type IMUFrame

type IMUFrame struct {
	Gyro struct {
		X float32
		Y float32
		Z float32
	}
	Accel struct {
		X float32
		Y float32
		Z float32
	}
}

func GetFrame

func GetFrame() (IMUFrame, error)

Get a frame from the IMU

Jump to

Keyboard shortcuts

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