altoslib: Add TeleMega-v4 adxl375 config to AltosConfigData
[fw/altos] / src / kernel / ao_data.h
index a7e58762c0a58dafd11409cb6ed687816e236404..988ac4897ecafbb8798ce1e1b5ceb2bf09368144 100644 (file)
@@ -448,8 +448,8 @@ static inline float ao_convert_accel(int16_t sensor)
 typedef int16_t        gyro_t;         /* in raw sample units */
 typedef int16_t angle_t;       /* in degrees */
 
-/* Y axis is aligned with the direction of motion (along) */
-/* X axis is aligned in the other board axis (across) */
+/* X axis is aligned with the direction of motion (along) */
+/* Y axis is aligned in the other board axis (across) */
 /* Z axis is aligned perpendicular to the board (through) */
 
 static inline float ao_convert_gyro(float sensor)
@@ -523,6 +523,9 @@ ao_data_fill(int head) {
 #endif
 #if HAS_ADS131A0X
                ao_data_ring[head].ads131a0x = ao_ads131a0x_current;
+#endif
+#if HAS_BMX160
+               ao_data_ring[head].bmx160 = ao_bmx160_current;
 #endif
                ao_data_ring[head].tick = ao_tick_count;
                ao_data_head = ao_data_ring_next(head);