kopia lustrzana https://github.com/bristol-seds/pico-tracker
Add rf transmit enable in hw config
rodzic
1b477a62ec
commit
bc1a657c8c
|
@ -195,6 +195,13 @@
|
||||||
#define RF_POWER_14dBm 0x7f
|
#define RF_POWER_14dBm 0x7f
|
||||||
#define RF_POWER_8dBm 36
|
#define RF_POWER_8dBm 36
|
||||||
|
|
||||||
|
/**
|
||||||
|
* RF Enable
|
||||||
|
*
|
||||||
|
* Disable this when there's no antenna connected
|
||||||
|
*/
|
||||||
|
#define RF_TX_ENABLE 1
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LF Clock
|
* LF Clock
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -52,6 +52,7 @@ void telemetry_sequence(struct tracker_datapoint* dp, uint32_t n)
|
||||||
location_aprs_update(dp->latitude, dp->longitude);
|
location_aprs_update(dp->latitude, dp->longitude);
|
||||||
|
|
||||||
/* Telemetry */
|
/* Telemetry */
|
||||||
|
#if RF_TX_ENABLE
|
||||||
#if TELEMETRY_ENABLE
|
#if TELEMETRY_ENABLE
|
||||||
#if TELEMETRY_USE_GEOFENCE
|
#if TELEMETRY_USE_GEOFENCE
|
||||||
if (location_telemetry_active()) {
|
if (location_telemetry_active()) {
|
||||||
|
@ -81,6 +82,7 @@ void telemetry_sequence(struct tracker_datapoint* dp, uint32_t n)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue