Closed Kongduino closed 1 week ago
@Kongduino Thank you very much for your feedback and we really hope to leave your footprints on the repo. Welcome to send PR to us.
@Kongduino Do you have any additional questions about the changes we've made to our repository?
@Kongduino We will close this issue. Your click suggestion has been modified at line 79. If you have any questions, please feel free to contact us.
This value of 101,325 Pa is not useful. Rather, it should use the actual mean sea-level pressure. Change the function and formula to this:
where p0 is the MSL, p1 is the current pressure and t the current temperature. These last 2 values can of course be omitted, since you can get them via
float getTemperature(void);
anduint32_t getPressure(void);
instead, of course.This will produce an actually usable altitude value. And same goes for BME280 too.
See this repo for more info.