This packages wraps the implementation of Madgwick algorithm
to get orientation of an object based on accelerometer and gyroscope readings for Golang
More information about the algorithm can be found at http://www.x-io.co.uk/open-source-imu-and-ahrs-algorithms/
- You must have Golang installed
- And not necessarily git
Go to C:\Go\src
$ cd C:\Go\src
Inside the folder execute the command:
$ git clone https://github.com/brunocannavina/goahrs.git
(or you can simply download it from github)
then, open the folder goahrs:
$ cd goahrs
and install the package:
$ go install
In your code add the packages goahrs
package main
import(
"fmt"
"goahrs"
)
func main(){
}