pecanpico9/software/config.h

31 wiersze
1.0 KiB
C

#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 200 /* Log cycle in seconds */
#define LOG_TRANSMISSION_TIME 16 /* Amount of log positions being transmitted once */
#define GPS_ON_VBAT 0 /* Battery voltage threshold at which GPS is switched on */
#define GPS_OFF_VBAT 0 /* 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 */
#define RADIO_BOOST FALSE /* Enables voltage boost at transmission (increases output power by ~6dB) */
void initModules(void);
#endif