mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-19 19:55:09 +01:00
ground correction height added
This commit is contained in:
parent
30cc5f67a4
commit
010d7e3270
|
|
@ -20,7 +20,7 @@
|
|||
Configuration Config;
|
||||
WiFiClient espClient;
|
||||
|
||||
String versionDate = "2023.07.31";
|
||||
String versionDate = "2023.08.05";
|
||||
int myWiFiAPIndex = 0;
|
||||
int myWiFiAPSize = Config.wifiAPs.size();
|
||||
WiFi_AP *currentWiFi = &Config.wifiAPs[myWiFiAPIndex];
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@
|
|||
#include "gps_utils.h"
|
||||
#include "display.h"
|
||||
|
||||
#define SEALEVELPRESSURE_HPA (1013.25)
|
||||
#define SEALEVELPRESSURE_HPA (1013.25)
|
||||
#define HEIGHT_CORRECTION 0 // in meters
|
||||
#define CORRECTION_FACTOR (8.2296) // for meters
|
||||
|
||||
extern Configuration Config;
|
||||
extern String fifthLine;
|
||||
|
|
@ -109,7 +111,7 @@ String readDataSensor() {
|
|||
} else {
|
||||
tempStr = generateTempString((newTemp * 1.8) + 32);
|
||||
humStr = generateHumString(newHum);
|
||||
presStr = generatePresString(newPress);
|
||||
presStr = generatePresString(newPress + (HEIGHT_CORRECTION/CORRECTION_FACTOR));
|
||||
fifthLine = "BME-> " + String(int(newTemp))+"C " + humStr + "% " + presStr.substring(0,4) + "hPa";
|
||||
wx = ".../...g...t" + tempStr + "r...p...P...h" + humStr + "b" + presStr;
|
||||
return wx;
|
||||
|
|
|
|||
Loading…
Reference in a new issue