add heater commands and fits-header creation

This commit is contained in:
2026-03-31 17:54:09 +03:00
parent cae7a6e213
commit 0f0c87ee2f
12 changed files with 402 additions and 46 deletions

View File

@@ -25,6 +25,17 @@
// dome polling interval (clear watchdog & get status)
#define T_INTERVAL (2.0)
typedef struct{
int focuserpos; // focuser position
char status[STATBUF_SZ]; // device status
double stattime; // time of last status
int cooler; // cooler's status
int heater; // heater's status
double mirrortemp; // T mirror, degC
double ambienttemp; // T ambient, degC
} telstatus_t;
void runserver(int isunix, const char *node, int maxclients);
void stopserver();
void forbid_observations(int forbid);
bool get_telescope_data(telstatus_t *t);