| | |
| | | BMP390_Write_Byte(INT_CTRL_Addr,0x02);//Set interrupt config |
| | | BMP390_Write_Byte(OSR_Addr,0x15);//Set the PM-RATE and PM-PRC,Set the TMPI-RATE and TMP-PRC |
| | | BMP390_Write_Byte(ODR_Addr,0x05);//Set the configuration of the output data rates by means of setting the subdivision/subsampling. |
| | | BMP390_Write_Byte(CONFIG_Addr,0x00);//IIR filter coeffcients |
| | | BMP390_Write_Byte(CONFIG_Addr,0);//IIR filter coeffcients |
| | | return BMP390_ID; |
| | | } |
| | | |
| | |
| | | } |
| | | float Altitude; |
| | | double Correcting_Temp,Correcting_Press; |
| | | extern int Pressure_Para[11],Temperature_Para[3]; |
| | | int Pressure_Para[11],Temperature_Para[3]; |
| | | void GetPressAndHeight() |
| | | { |
| | | float Pressure,Pressure_Temp,Pres_temp; |