Add option for TELEMETRY_USE_GEOFENCE, disable APRS

master
Richard Meadows 2015-10-01 14:24:40 +01:00
rodzic 929ab37f3d
commit e5e6cfaf85
3 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -5,6 +5,7 @@
somewhat inaccurate.
- `APRS_ENABLE` is set if APRS is to be used on the flight
- `APRS_USE_GEOFENCE` is set
- `TELEMETRY_USE_GEOFENCE` is set
- `DEBUG_USE_INTWATCHDOG` can be disabled during flight. This saves some power
- Check interrupts are regular enough to kick the hardware
watchdog.

Wyświetl plik

@ -159,12 +159,13 @@
*/
#define TELEMETRY_FREQUENCY 434600000
#define TELEMETRY_POWER RF_POWER_8dBm
#define TELEMETRY_USE_GEOFENCE 0
/**
* APRS
*/
#define APRS_ENABLE 1
#define APRS_USE_GEOFENCE 1
#define APRS_ENABLE 0
#define APRS_USE_GEOFENCE 0
#define APRS_POWER RF_POWER_14dBm
/**

Wyświetl plik

@ -142,8 +142,10 @@ void read_gps_time(void)
*/
void cron_telemetry(struct tracker_time* t, struct tracker_datapoint* dp)
{
#ifdef TELEMETRY_USE_GEOFENCE
/* ---- Telemetry output ---- */
if (telemetry_location_tx_allow()) {
#endif
/* RTTY */
if (t->second == 0 && !LOW_POWER(dp)) {
@ -166,7 +168,9 @@ void cron_telemetry(struct tracker_time* t, struct tracker_datapoint* dp)
pips_telemetry();
}
#ifdef TELEMETRY_USE_GEOFENCE
}
#endif
/* APRS */
#ifdef APRS_ENABLE