kopia lustrzana https://github.com/bristol-seds/pico-tracker
[ubseds17] set night time cycle to once every 3 minutes, so night-time ARISS is once every 6
* ariss is only enabled after 5 successful cycles, in case rf amplifier can't be supported by batterymain-solar-only
rodzic
76c44fe19c
commit
cc5a52fe86
|
@ -169,7 +169,7 @@
|
|||
* Cycle Times
|
||||
*/
|
||||
#define CYCLE_TIME_FAST (30) /* shortest hibernate */
|
||||
#define CYCLE_TIME_SLOW (100) /* once every two minutes */
|
||||
#define CYCLE_TIME_SLOW (180) /* once every three minutes */
|
||||
|
||||
/**
|
||||
* Radio
|
||||
|
@ -227,7 +227,7 @@
|
|||
* Telemetry
|
||||
*/
|
||||
#define TELEMETRY_ENABLE 1
|
||||
#define TELEMETRY_USE_GEOFENCE 0
|
||||
#define TELEMETRY_USE_GEOFENCE 1
|
||||
#define TELEMETRY_FREQUENCY 434612500
|
||||
#define TELEMETRY_POWER RF_POWER_8dBm
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ void telemetry_sequence(struct tracker_datapoint* dp, uint32_t n)
|
|||
|
||||
/* APRS */
|
||||
#if APRS_ENABLE
|
||||
if (get_since_aprs_s() >= 60) { /* limit APRS frequency to once per minute */
|
||||
if (get_since_aprs_s() >= 55) { /* limit APRS transmissions to about once per minute */
|
||||
clear_since_aprs_s();
|
||||
#if APRS_USE_GEOFENCE
|
||||
if (location_aprs_should_tx()) { /* transmit only when we *should* */
|
||||
|
@ -99,8 +99,9 @@ void telemetry_sequence(struct tracker_datapoint* dp, uint32_t n)
|
|||
|
||||
/* ARISS */
|
||||
#if ARISS_ENABLE
|
||||
if ((get_battery_use_state() == BATTERY_GOOD) && /* battery good, */
|
||||
((n % 2) == 0)) { /* one-in-two times */
|
||||
if ((get_battery_use_state() == BATTERY_GOOD) && /* battery good, */
|
||||
(n > 5) && /* have been running for some time, */
|
||||
((n % 2) == 0)) { /* one-in-two times */
|
||||
#if ARISS_USE_GEOFENCE
|
||||
if (location_aprs_could_tx()) { /* transmit anywhere it's not disallowed */
|
||||
#endif
|
||||
|
|
Ładowanie…
Reference in New Issue