Adjusting pressure offset

This commit is contained in:
Daniele Lacamera 2022-09-04 15:47:05 +02:00
parent 1325bee429
commit e3306f6382

View file

@ -7,7 +7,7 @@
//#define HZ2MS(X) ((uint64_t)((X * 53000.0)/(SystemCoreClock)))
//
#define BMP180_SOLDERING_OFF_T 190
#define BMP180_SOLDERING_OFF_P 14000
#define BMP180_SOLDERING_OFF_P 12500
void init_uart0(void)
{
@ -485,7 +485,7 @@ int main(void)
int32_t gps_altitude = global_minmea_gga.altitude.value /
global_minmea_gga.altitude.scale;
pressure += (gps_altitude * 12);
snprintf(prs, MAX_ROW - 1, "p (at sea): %u.%02u", pressure/100, pressure % 100);
snprintf(prs, MAX_ROW - 1, "p (sea): %u.%02u", pressure/100, pressure % 100);
LCD_ShowString(0, 48, (u8 *)(prs), CYAN);
} else {
snprintf(prs, MAX_ROW - 1, "p (meas): %u.%02u", pressure/100, pressure % 100);