brunocannavina / goahrs

This packages wraps the implementation of Madgwick algorithm to get orientation of an object based on accelerometer and gyroscope readings for Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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(){

}

About

This packages wraps the implementation of Madgwick algorithm to get orientation of an object based on accelerometer and gyroscope readings for Golang


Languages

Language:Go 100.0%