vimu

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 4 Imported by: 0

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

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