mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
gnu: Add fusion.
* gnu/packages/robotics.scm (fusion): New variable. Change-Id: Id9b8414cfce25b3841284ec1329424f6bec5fbea Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
committed by
Liliana Marie Prikler
parent
3d4689a240
commit
eb7fc96c91
@@ -22,6 +22,7 @@
|
|||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix build-system cmake)
|
#:use-module (guix build-system cmake)
|
||||||
|
#:use-module (guix gexp)
|
||||||
#:use-module (gnu packages avahi)
|
#:use-module (gnu packages avahi)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages cpp)
|
#:use-module (gnu packages cpp)
|
||||||
@@ -72,3 +73,34 @@ hundred times faster than real-time.")
|
|||||||
;; citation, but that sentence is written as not being part of the
|
;; citation, but that sentence is written as not being part of the
|
||||||
;; license (fortunately).
|
;; license (fortunately).
|
||||||
(license license:gpl2+))))
|
(license license:gpl2+))))
|
||||||
|
|
||||||
|
(define-public fusion
|
||||||
|
(package
|
||||||
|
(name "fusion")
|
||||||
|
(version "1.2.9")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/xioTechnologies/Fusion")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "0k5p9fc3zg49c9l8cfm08sgnzwkbz2brv7yfwsly2yfipl38w6xx"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:tests? #f
|
||||||
|
#:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON")
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'install
|
||||||
|
(lambda _ (install-file "Fusion/libFusion.so"
|
||||||
|
(string-append #$output "/lib")))))))
|
||||||
|
(home-page "https://github.com/xioTechnologies/Fusion")
|
||||||
|
(synopsis "Sensor fusion library for embedded systems")
|
||||||
|
(description "Fusion is a sensor fusion library implementing the Attitude
|
||||||
|
and Heading Reference System (AHRS) algorithm, which combines available
|
||||||
|
gyroscope, accelerometer, and magnetometer data into a single measurement of
|
||||||
|
orientation relative to the Earth.")
|
||||||
|
(license license:expat)))
|
||||||
|
|||||||
Reference in New Issue
Block a user