111 static uint64_t imu_timestamp_us = 0;
117 static uint32_t last_print_ms = 0;
119 if(
millis() > last_print_ms + 10)
124 printf(
"acc: %d.%d, %d.%d, %d.%d\t", (int32_t)
accel_data[0], (uint32_t)(accel_data[0]*100)%100,
125 (int32_t)accel_data[1], (uint32_t)(accel_data[1]*100)%100, (int32_t)accel_data[2], (uint32_t)(accel_data[2]*100)%100);
126 printf(
"baro: %d Pa %d.%d K\t", (uint32_t) baro, (int32_t) temp, (uint32_t)(temp*100)%100);
127 printf(
"mag: %d, %d, %d, \t", (int32_t)
mag_data[0], (int32_t) mag_data[1], (int32_t) mag_data[2]);
128 printf(
"as: %d.%d, %d.%d\t", (int32_t)diff_pres, (uint32_t)(diff_pres*100)%100, (int32_t) diff_temp, (uint32_t)(diff_temp*100)%100);
129 printf(
"sonar: %d.%d", (int32_t)sonar, (uint32_t)(sonar*100)%100);
uint16_t i2cGetErrorCounter(void)
volatile uint8_t accel_status
void i2cInit(I2CDevice index)
volatile uint8_t gyro_status
volatile uint32_t millis(void)
void mb1242_async_update()
void mpu6050_async_read_all(volatile int16_t *accData, volatile int16_t *tempData, volatile int16_t *gyroData, volatile uint64_t *timeData)
volatile uint8_t temp_status
void mpu6050_init(bool enableInterrupt, uint16_t *acc1G, float *gyroScale, int boardVersion)
void ms4525_async_read(float *differential_pressure, float *temp)
void hmc5883l_async_read(float *mag_data)
bool i2cWrite(uint8_t addr_, uint8_t reg_, uint8_t data)
static volatile int16_t temp
void hmc5883l_request_async_update()
volatile int16_t temp_data
void ms5611_async_update()
float mb1242_async_read()
volatile bool mpu_new_measurement
void ms4525_async_update()
void ms5611_async_read(float *pressure, float *temperature)