add wind direction

This commit is contained in:
2025-06-23 11:33:58 +03:00
parent 453a56429d
commit db2c0e2d9c
2 changed files with 37 additions and 1 deletions

View File

@@ -151,6 +151,7 @@ char *poll_device(char *ans, int anslen){
d /= 3.6;
PRINT("Wind=%.1f\n", d);
if(d > GUST_WIND) gustt = tnow;
if(getpar(r, &d, "WR")) PRINT("Dir=%.1f\n", d);
}
if(tnow - gustt < GUST_MAX_TIME) PRINT("Gusttime=%lld\n", (long long)gustt);
// now get BTA parameters