oe3cjb / TTGO-T-Beam-LoRa-APRS

Use TTGO T-Beam as LoRa APRS Tracker
100 stars 74 forks source link

BME280 added measurement of air pressure #20

Closed thovoigt closed 3 years ago

thovoigt commented 3 years ago

Hi,

I've seen, that for BME280 sensors only temperature and humidity are measured and sent in the APRS messages.

My push request adds the measurement and transmission of the air pressure via APRS messages. Because air pressure has to be given for a defined height at sea level there has to be calculated an offset to the measured pressure which depends on the height of the tracker. If the tracker is in a mode where GPS is active, the height is used from GPS. In WX_FIXED mode (without GPS) the height is used as fixed heigth from HEIGTH_PRESET in TTGO_T-Beam_LoRa_APRS_config.h.

I've implemented a very simple function calc_pressure_offset() into TTGO_T-Beam_LoRa_APRS.ino to calculate this offset. Maybe, this gives results, which are not exact enough. Then we should use some more complicated calculations there.

73s de Thomas, DG0OFZ

oe3cjb commented 3 years ago

Thank you Thomas :-) 73 OE3CJB Christian