-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.h
42 lines (31 loc) · 998 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include <stdbool.h>
#define sizeofarray(x) sizeof(x)/sizeof(x[0])
typedef struct config_t {
/* Database Variables configured by user */
char db_host[128];
char db_database[128];
char db_user[128];
char db_passwd[128];
/* Database Connection String generated by program */
char db_conn_string[1024];
/* Spacetrack Credentials configured by user */
char spacetrack_user[128];
char spacetrack_passwd[128];
/* Earth Station Position configured by user */
double latitude;
double longitude;
double altitude;
/* Earth Station Tracking Variables configured by user */
double azimuth_endstop;
double azimuth_rate;
double elevation_rate;
/* Scheduler Variables configured by user */
double minimum_elevation;
double minimum_interval;
double minimum_period;
} config_t;
config_t config;
bool config_load(config_t *config, char *filename);
#endif /* __CONFIG_H__ */