Subversion Repositories Projects

Rev

Rev 2194 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2194 Rev 2198
Line 4... Line 4...
4
copyright (c) Davide Gironi, 2012
4
copyright (c) Davide Gironi, 2012
Line 5... Line 5...
5
 
5
 
6
Released under GPLv3.
6
Released under GPLv3.
7
Please refer to LICENSE file for licensing information.
7
Please refer to LICENSE file for licensing information.
-
 
8
*/
-
 
9
//############################################################################
-
 
10
//# HISTORY  mpu6050.c
-
 
11
//#
-
 
12
//# 19.09.2015 cebra
-
 
13
//# - add: Library für MPU6050 Gyro, ACC, GY-87 Sensorboard
-
 
14
//#
Line 8... Line -...
8
*/
-
 
-
 
15
//############################################################################
9
 
16
 
10
 
17
#ifdef USE_KOMPASS
11
#include <stdlib.h>
18
#include <stdlib.h>
12
#include <string.h>
19
#include <string.h>
13
#include <avr/io.h>
20
#include <avr/io.h>
Line 682... Line 689...
682
        *roll = atan2(2*q2*q3 - 2*q0*q1, 2*q0*q0 + 2*q3*q3 - 1);
689
        *roll = atan2(2*q2*q3 - 2*q0*q1, 2*q0*q0 + 2*q3*q3 - 1);
683
}
690
}
Line 684... Line 691...
684
 
691
 
Line -... Line 692...
-
 
692
#endif