projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Intgrate hmc5883 sensor into adc ring
[fw/altos]
/
src
/
core
/
ao_data.h
diff --git
a/src/core/ao_data.h
b/src/core/ao_data.h
index 83f8df597e44cbd1ae9295a85d5e1b1e22276324..502df6c9e55afd5441fe48b7557218a23887fc2a 100644
(file)
--- a/
src/core/ao_data.h
+++ b/
src/core/ao_data.h
@@
-26,6
+26,10
@@
#include <ao_mpu6000.h>
#endif
#include <ao_mpu6000.h>
#endif
+#if HAS_HMC5883
+#include <ao_hmc5883.h>
+#endif
+
struct ao_data {
uint16_t tick;
#if HAS_ADC
struct ao_data {
uint16_t tick;
#if HAS_ADC
@@
-37,6
+41,9
@@
struct ao_data {
#if HAS_MPU6000
struct ao_mpu6000_sample mpu6000;
#endif
#if HAS_MPU6000
struct ao_mpu6000_sample mpu6000;
#endif
+#if HAS_HMC5883
+ struct ao_hmc5883_sample hmc5883;
+#endif
};
#define ao_data_ring_next(n) (((n) + 1) & (AO_DATA_RING - 1))
};
#define ao_data_ring_next(n) (((n) + 1) & (AO_DATA_RING - 1))