[ubseds15] cold out to -70, allow gps to run for a day without reset, add deathwish

main-solar-only
Richard Meadows 2016-04-29 12:27:27 +01:00
rodzic 0c9ecf4dc6
commit 35bbca5629
3 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -161,7 +161,7 @@
/**
* Cold out
*/
#define COLD_OUT_TEMPERATURE (-58.0)
#define COLD_OUT_TEMPERATURE (-70.0)
#define COLD_OUT_SECONDS (15*60) /* 15 minutes */
#define COLD_OUT_COUNT_MAX (16*4) /* up to 16 hours*/

Wyświetl plik

@ -646,7 +646,7 @@ uint32_t gd_reinit_count = 0;
/* Number of times gps_get_data called */
uint32_t gd_count = 0;
#define GD_COUNT_MAX (360) /* GPS is good for about a day @15 per hour */
#define GD_COUNT_MAX (720) /* GPS is good for about a day @30 per hour */
/* No lock */
uint32_t gd_nolock_count = 0;

Wyświetl plik

@ -55,6 +55,10 @@ void telemetry_sequence(struct tracker_datapoint* dp, uint32_t n)
location_prefix_update(dp->latitude, dp->longitude);
kick_the_watchdog();
/* DEATHWISH */
/* CEASE TRANSMISSIONS AT THE END OF 2016 */
if (dp->time.year > 2016) { return; }
/* Telemetry */
#if RF_TX_ENABLE
#if TELEMETRY_ENABLE