Skip to content
Snippets Groups Projects

sensors: don't use temperature for altitude (also tiny math typo fix)

Merged moon2 requested to merge sensor_app_fix2 into main
  1. Nov 03, 2023
    • moon2's avatar
      sensors: don't use temperature for altitude (also tiny math typo fix) · 1fdc7654
      moon2 authored
      note: for accurate absolute altitude calculation we'd need to know the local
      pressure at sea level, outside temperature and ideally relative humidity.
      while it is certainly possible to retrieve them via wifi etc., it is not in
      the scope of this application to do so.
      
      relative altitude is proportional to outside temperature, so we introduce a
      multiplicative error by ignoring it. this scale error is 7% at 35degC and
      -4% at 0degC. in comparison, if we assume the temperature reading is the
      outside temperature, going from a heated apartment to the balcony at same
      elevation can cause a shift that may well be in the magnitude of 10m. we
      find the former to be preferable to the latter.
      1fdc7654
Loading