示例#1
0
void baro_init(void)
{
  ads1114_init();
#ifdef BARO_LED
  LED_OFF(BARO_LED);
#endif
  startup_cnt = BARO_STARTUP_COUNTER;
}
示例#2
0
void baro_init( void ) {
  ads1114_init();
  baro.status = BS_UNINITIALIZED;
  baro.absolute     = 0;
  baro.differential = 0; /* not handled on this board */
#ifdef USE_BARO_AS_ALTIMETER
  baro_alt = 0.;
  baro_alt_offset = 0.;
  offset_cnt = OFFSET_NBSAMPLES_AVRG;
#endif
}