AHRS library for the Polulu minIMU-9 Ability to interface with the Polulu Python minIMU-9 monitor
Matrix.h@1:3272ece36ce1, 2012-04-23 (annotated)
- Committer:
- krmreynolds
- Date:
- Mon Apr 23 14:31:08 2012 +0000
- Revision:
- 1:3272ece36ce1
- Parent:
- 0:dc35364e2291
Ported L3G4200D and LSM303 from the Polulu website, dropped the horrible code that someone else built
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
krmreynolds | 0:dc35364e2291 | 1 | /* mbed L3G4200D Library version 0.1 |
krmreynolds | 1:3272ece36ce1 | 2 | * Copyright (c) 2012 2012 Ported to MBED and modified by Prediluted (Kris Reynolds) |
krmreynolds | 0:dc35364e2291 | 3 | * |
krmreynolds | 0:dc35364e2291 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
krmreynolds | 0:dc35364e2291 | 5 | * of this software and associated documentation files (the "Software"), to deal |
krmreynolds | 0:dc35364e2291 | 6 | * in the Software without restriction, including without limitation the rights |
krmreynolds | 0:dc35364e2291 | 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
krmreynolds | 0:dc35364e2291 | 8 | * copies of the Software, and to permit persons to whom the Software is |
krmreynolds | 0:dc35364e2291 | 9 | * furnished to do so, subject to the following conditions: |
krmreynolds | 0:dc35364e2291 | 10 | * |
krmreynolds | 0:dc35364e2291 | 11 | * The above copyright notice and this permission notice shall be included in |
krmreynolds | 0:dc35364e2291 | 12 | * all copies or substantial portions of the Software. |
krmreynolds | 0:dc35364e2291 | 13 | * |
krmreynolds | 0:dc35364e2291 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
krmreynolds | 0:dc35364e2291 | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
krmreynolds | 0:dc35364e2291 | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
krmreynolds | 0:dc35364e2291 | 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
krmreynolds | 0:dc35364e2291 | 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
krmreynolds | 0:dc35364e2291 | 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
krmreynolds | 0:dc35364e2291 | 20 | * THE SOFTWARE. |
krmreynolds | 0:dc35364e2291 | 21 | */ |
krmreynolds | 0:dc35364e2291 | 22 | |
krmreynolds | 1:3272ece36ce1 | 23 | float vector_dot_product(float vector1[3],float vector2[3]); |
krmreynolds | 1:3272ece36ce1 | 24 | void vector_cross_product(float vectorOut[3], float v1[3],float v2[3]); |
krmreynolds | 1:3272ece36ce1 | 25 | void vector_scale(float vectorOut[3],float vectorIn[3], float scale2); |
krmreynolds | 1:3272ece36ce1 | 26 | void vector_add(float vectorOut[3],float vectorIn1[3], float vectorIn2[3]); |
krmreynolds | 1:3272ece36ce1 | 27 | void matrix_multiply(float a[3][3], float b[3][3],float mat[3][3]); |