dzenik / comp6dof_n0m1 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from n0m1/comp6dof_n0m1
An Arduino Library for compass tilt compensation and hard iron offset
This project forked from n0m1/comp6dof_n0m1
An Arduino Library for compass tilt compensation and hard iron offset
Name : MMA8453_n0m1 Library Author : Noah Shibley, Michael Grant, NoMi Design Ltd. http://n0m1.com Date : Feb 1st 2012 Version : 0.1 Notes : Arduino Library for compass tilt compensation and hard iron offset. Part of this code was ported to C from the Freescale appnote AN4248. http://www.freescale.com/files/sensors/doc/app_note/AN4248.pdf The sine function comes from Dave Dribin's TrigInt lib. https://bitbucket.org/ddribin/trigint Dependencies: none List of Functions: Function: compCompass Description: compass compensation calculation Parameters: Input raw compass values, xyz, and accelerometer values xyz, boolean lowpass enable ------------------------------------------------------ Function: roll Return: (int) returns roll result -18000 to 18000 ------------------------------------------------------ Function: pitch Return: (int) returns pitch result -9000 to 9000 ------------------------------------------------------ Function: yaw Return: (int) returns yaw result -18000 to 18000 ------------------------------------------------------ Function: rollf Return: (float) returns roll as float value -180.00 to 180.00 ------------------------------------------------------ Function: pitchf Return: (float) returns pitch as float value -90.00 to 90.00 ------------------------------------------------------ Function: yawf Return: (float) returns yaw as float value -180.00 to 180.00 ------------------------------------------------------ Function: xAxisComp Return: (int) return tilt compensated xAxis compass result ------------------------------------------------------ Function: yAxisComp Return: (int) return tilt compensated yAxis compass result ------------------------------------------------------ Function: zAxisComp Return: (int) return tilt compensated zAxis compass result ------------------------------------------------------ Function: xHardOff Return: (int) return hardiron xOffset for compass ------------------------------------------------------ Function: yHardOff Return: (int) return hardiron yOffset for compass ------------------------------------------------------ Function: zHardOff Return: (int) return hardiron zOffset for compass ------------------------------------------------------ Function: deviantSpread Description: get all axis combos (8) & load array Parameters: int xAxis, int yAxis, int zAxis ------------------------------------------------------ Function: calOffsets Description: solve for x,y,z max & min, filter results, pick the best and average Return: (boolean) return true if avgnum >3 ------------------------------------------------------ Function: atan2Int Parameters: int xInput, int yInput
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.