void baro_ms5611_send_coeff(void) { if (baro_ms5611.initialized) { DOWNLINK_SEND_MS5611_COEFF(DefaultChannel, DefaultDevice, &baro_ms5611.data.c[0], &baro_ms5611.data.c[1], &baro_ms5611.data.c[2], &baro_ms5611.data.c[3], &baro_ms5611.data.c[4], &baro_ms5611.data.c[5], &baro_ms5611.data.c[6], &baro_ms5611.data.c[7]); } }
void baro_periodic(void) { if (sys_time.nb_sec > 1) { /* call the convenience periodic that initializes the sensor and starts reading*/ ms5611_spi_periodic(&bb_ms5611); #if DEBUG if (bb_ms5611.initialized) RunOnceEvery((50 * 30), DOWNLINK_SEND_MS5611_COEFF(DefaultChannel, DefaultDevice, &bb_ms5611.data.c[0], &bb_ms5611.data.c[1], &bb_ms5611.data.c[2], &bb_ms5611.data.c[3], &bb_ms5611.data.c[4], &bb_ms5611.data.c[5], &bb_ms5611.data.c[6], &bb_ms5611.data.c[7])); #endif } }