Subversion Repositories EDIS_Ignition

Rev

Rev 2 | Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 13
Line 73... Line 73...
73
  rslt = bmp280_get_config(&conf, &bmp);
73
  rslt = bmp280_get_config(&conf, &bmp);
74
  if (rslt != BMP280_OK)
74
  if (rslt != BMP280_OK)
75
    return rslt;
75
    return rslt;
76
  /* configuring the temperature oversampling, filter coefficient and output data rate */
76
  /* configuring the temperature oversampling, filter coefficient and output data rate */
77
  /* Overwrite the desired settings */
77
  /* Overwrite the desired settings */
78
  conf.filter = BMP280_FILTER_COEFF_2;
78
  conf.filter = BMP280_FILTER_COEFF_4;
79
 
79
 
80
  /* Temperature oversampling set at 4x */
80
  /* Temperature oversampling set at 4x */
81
  conf.os_temp = BMP280_OS_4X;
81
  conf.os_temp = BMP280_OS_1X;
82
 
82
 
83
  /* Pressure over sampling none (disabling pressure measurement) */
83
  /* Pressure over sampling none (disabling pressure measurement) */
84
  conf.os_pres = BMP280_OS_4X;
84
  conf.os_pres = BMP280_OS_4X;
85
 
85
 
86
  /* Setting the output data rate as 2HZ(500ms) */
86
  /* Setting the output data rate as 8HZ(500ms) */
87
  conf.odr = BMP280_ODR_500_MS;
87
  conf.odr = BMP280_ODR_125_MS;
88
  rslt = bmp280_set_config(&conf, &bmp);
88
  rslt = bmp280_set_config(&conf, &bmp);
89
  if (rslt != BMP280_OK)
89
  if (rslt != BMP280_OK)
90
    return rslt;
90
    return rslt;
91
 
91
 
92
  /* Always set the power mode after setting the configuration */
92
  /* Always set the power mode after setting the configuration */