summaryrefslogtreecommitdiff
path: root/ahrs.h
blob: e78ae8d9ab03c990cbebc9c6be42be38ae384726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef AHRS_H
#define AHRS_H

#include "itg3200.h"
#include "bma150.h"

class AHRS {
	public:
		ITG3200 gyro;
		BMA150 accel;
		
		AHRS(I2C& i2c) : gyro(i2c), accel(i2c) {}
		
		void init() {
			gyro.init();
			accel.init();
		}
		
		void update() {
			gyro.update();
			accel.update();
		}
};

#endif