kopia lustrzana https://github.com/bristol-seds/pico-tracker
Switch to Contestia only, once per minute. Time of Minute is configurable
rodzic
599e677a20
commit
ec98df64f9
|
@ -140,6 +140,8 @@ void read_gps_time(void)
|
||||||
/**
|
/**
|
||||||
* Pars of cron job that handles telemetry
|
* Pars of cron job that handles telemetry
|
||||||
*/
|
*/
|
||||||
|
#define TELEM_TOM 0 /* Telemetry on the 0th second */
|
||||||
|
|
||||||
void cron_telemetry(struct tracker_time* t, struct tracker_datapoint* dp)
|
void cron_telemetry(struct tracker_time* t, struct tracker_datapoint* dp)
|
||||||
{
|
{
|
||||||
#ifdef TELEMETRY_USE_GEOFENCE
|
#ifdef TELEMETRY_USE_GEOFENCE
|
||||||
|
@ -147,22 +149,10 @@ void cron_telemetry(struct tracker_time* t, struct tracker_datapoint* dp)
|
||||||
if (telemetry_location_tx_allow()) {
|
if (telemetry_location_tx_allow()) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* RTTY */
|
|
||||||
if (t->second == 0 && !LOW_POWER(dp)) {
|
|
||||||
rtty_telemetry(dp);
|
|
||||||
|
|
||||||
/* Contestia */
|
/* Contestia */
|
||||||
} else if (t->second == 30 && !LOW_POWER(dp)) {
|
if (t->second == TELEM_TOM) {
|
||||||
contestia_telemetry(dp);
|
contestia_telemetry(dp);
|
||||||
|
|
||||||
/* Low Power */
|
|
||||||
} else if (t->second == 0 && LOW_POWER(dp)) {
|
|
||||||
if ((t->minute % 2) == 0) {
|
|
||||||
rtty_telemetry(dp);
|
|
||||||
} else {
|
|
||||||
contestia_telemetry(dp);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Pip */
|
/* Pip */
|
||||||
} else if ((t->second % 1) == 0) {
|
} else if ((t->second % 1) == 0) {
|
||||||
pips_telemetry();
|
pips_telemetry();
|
||||||
|
@ -174,7 +164,7 @@ void cron_telemetry(struct tracker_time* t, struct tracker_datapoint* dp)
|
||||||
|
|
||||||
/* APRS */
|
/* APRS */
|
||||||
#ifdef APRS_ENABLE
|
#ifdef APRS_ENABLE
|
||||||
if ((t->minute % 2) == 0 && t->second == 0) {
|
if ((t->minute % 2) == 0 && t->second == TELEM_TOM) {
|
||||||
aprs_telemetry(dp);
|
aprs_telemetry(dp);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue