kopia lustrzana https://github.com/bristol-seds/pico-tracker
Add option for TELEMETRY_USE_GEOFENCE, disable APRS
rodzic
929ab37f3d
commit
e5e6cfaf85
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue