Luftdruck-Reduktion auf Meereshöhe #1

Closed
opened 4 years ago by hendrik · 1 comments
hendrik commented 4 years ago
Owner
static constexpr float HEIGHT = 135;

  // https://de.wikipedia.org/wiki/Barometrische_H%C3%B6henformel#Reduktion_auf_Meeresh%C3%B6he
  // https://carnotcycle.wordpress.com/2012/08/04/how-to-convert-relative-humidity-to-absolute-humidity/
  float absolute_humidity = (6.112*exp((17.67*sd.temperature)/(sd.temperature+243.5))*(sd.humidity/100)*18.02)/((273.15+sd.temperature)*1000*0.08314);
  float pressure_compensation_factor = exp((9.80665/(287.05*(sd.temperature+273.15+0.12*((absolute_humidity*461.5*(sd.temperature+273.15)/100)/100)+0.0065*(HEIGHT/2))))*HEIGHT);

  pressureObject2["value"] = sd.pressure*pressure_compensation_factor;
``` static constexpr float HEIGHT = 135; // https://de.wikipedia.org/wiki/Barometrische_H%C3%B6henformel#Reduktion_auf_Meeresh%C3%B6he // https://carnotcycle.wordpress.com/2012/08/04/how-to-convert-relative-humidity-to-absolute-humidity/ float absolute_humidity = (6.112*exp((17.67*sd.temperature)/(sd.temperature+243.5))*(sd.humidity/100)*18.02)/((273.15+sd.temperature)*1000*0.08314); float pressure_compensation_factor = exp((9.80665/(287.05*(sd.temperature+273.15+0.12*((absolute_humidity*461.5*(sd.temperature+273.15)/100)/100)+0.0065*(HEIGHT/2))))*HEIGHT); pressureObject2["value"] = sd.pressure*pressure_compensation_factor; ```
Poster
Owner

fixed by 583a26a6

fixed by 583a26a6
hendrik closed this issue 4 years ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.