-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.h
28 lines (19 loc) · 954 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
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include "ch.h"
#include "hal.h"
#include "chprintf.h"
#include "types.h"
#include "radio.h"
#include "sleep.h"
extern module_conf_t config[9];
#define TRACK_CYCLE_TIME 120 /* Tracking cycle (all peripheral data [airpressure, GPS, temperature, ...] is collected each x seconds */
#define ERRORLOG_SIZE 25 /* Amount of error messages being sent in one error log packet */
#define LOG_CYCLE_TIME 1800 /* Log cycle in seconds */
#define LOG_TRANSMISSION_TIME 16 /* Amount of log positions being transmitted once */
#define GPS_ON_VBAT 3000 /* Battery voltage threshold at which GPS is switched on */
#define GPS_OFF_VBAT 2200 /* Battery voltage threshold at which GPS is switched off */
#define TRACE_TIME TRUE /* Enables time tracing on serial connection */
#define TRACE_FILE TRUE /* Enables file and line tracing on serial connection */
void initModules(void);
#endif