Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1993 - 1
#include <ADXL345.h>
2
#include <HMC58X3.h>
3
#include <ITG3200.h>
4
#include <bma180.h>
5
 
6
#define DEBUG
7
#ifdef DEBUG
8
#include "DebugUtils.h"
9
#endif
10
 
11
#include "CommunicationUtils.h"
12
#include "FreeIMU.h"
13
#include <Wire.h>
14
 
15
 
16
float q[4];
17
 
18
// Set the FreeIMU object
19
FreeIMU my3IMU = FreeIMU();
20
 
21
void setup() {
22
  Serial.begin(115200);
23
  Wire.begin();
24
 
25
  delay(5);
26
  my3IMU.init();
27
  delay(5);
28
}
29
 
30
 
31
void loop() {
32
  my3IMU.getQ(q);
33
  serialPrintFloatArr(q, 4);
34
  Serial.println("");
35
  delay(10);
36
}
37