Skip to content

Madgwick and Mahony algorithms for sensor fusion in golang

License

Notifications You must be signed in to change notification settings

tracktum/go-ahrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ahrs

Installation

go get github.com/tracktum/go-ahrs

Usage

See example in ahrs_test.go

Benchmark

Benchmark ran in my Dell Intel® Core™ i3-5010U CPU @ 2.10GHz × 4 (2015 i3 laptop), with Arch Linux OS:

goos: linux
goarch: amd64
pkg: github.com/tracktum/go-ahrs
BenchmarkMadgwick-4     78186508               152 ns/op
BenchmarkMahony-4       100000000              117 ns/op
PASS
ok      github.com/tracktum/go-ahrs     25.318s