Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 815 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 815 Bytes

GoAHRS

Description

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/

Installation

  • 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

Usage

In your code add the packages goahrs

package main

import(
  "fmt"
  "goahrs"
)

func main(){

}