some more fixes; added atmdens, added corrections

This commit is contained in:
Edward Emelianov
2026-10-16 02:20:58 +03:00
parent 98a84fb7df
commit 6f0e2769f8
13 changed files with 1491 additions and 62 deletions

View File

@@ -19,6 +19,20 @@
#pragma once
#include <weather_data.h>
/* for:
typedef struct {
weather_condition_t weather; // conditions: field "WEATHER"
float windmax; // maximal wind for last hour, m/s: "WINDMAX1"
float wind; // current wind speed, m/s: "WIND"
float clouds; // sky "quality" (>2500 - OK): "CLOUDS"
float exttemp; // external temperature, degC: "EXTTEMP"
float pressure; // atm. pressure, mmHg: "PRESSURE"
float humidity; // humidity, percents: "HUMIDITY"
int rain; // ==1 when rainy: "PRECIP"
int forceoff; // force power off (AC power lost or lightning)
time_t last_update; // value of "TMEAS"
} weather_data_t;
*/
#include "angles.h"
#include "mount.h"
@@ -33,6 +47,7 @@
#define FLT_EPSILON 1e-6
#endif
typedef struct{
weather_data_t weather;
mount_status_t status;