kopia lustrzana https://github.com/bristol-seds/pico-tracker
[ubseds16] set cycle time to always be 30 seconds
rodzic
dc447a7150
commit
2766c2c952
|
@ -123,8 +123,8 @@
|
||||||
/**
|
/**
|
||||||
* Cycle Times
|
* Cycle Times
|
||||||
*/
|
*/
|
||||||
#define CYCLE_TIME_FAST (0) /* shortest hibernate */
|
#define CYCLE_TIME_FAST (30) /* always 30 seconds */
|
||||||
#define CYCLE_TIME_SLOW (100) /* once every two minutes */
|
#define CYCLE_TIME_SLOW (30)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Radio
|
* Radio
|
||||||
|
|
|
@ -76,7 +76,7 @@ uint16_t format_telemetry_string(char* string, struct tracker_datapoint* dp,
|
||||||
len += sprintf(string + len,
|
len += sprintf(string + len,
|
||||||
// "%s,%02u:%02u:%02u,%02u%02u%02u,%02.4f,%03.4f,%ld,%u,%u,%.2f,%.1f,%.1f",
|
// "%s,%02u:%02u:%02u,%02u%02u%02u,%02.4f,%03.4f,%ld,%u,%u,%.2f,%.1f,%.1f",
|
||||||
// "%s,%02u:%02u:%02u,%02u%02u%02u,%02.4f,%03.4f,%ld,%u,%u,%.2f,%.2f,%.1f,%.1f",
|
// "%s,%02u:%02u:%02u,%02u%02u%02u,%02.4f,%03.4f,%ld,%u,%u,%.2f,%.2f,%.1f,%.1f",
|
||||||
"%s,%02u:%02u:%02u,%02u%02u%02u,%02.4f,%03.4f,%ld,%u,%.2f,%.1f",
|
"%s,%02u:%02u:%02u,%02u%02u%02u,%02.4f,%03.4f,%ld,%u,%.2f,%.1f,%ld",
|
||||||
CALLSIGN, /* 2+6+2+1=11 */
|
CALLSIGN, /* 2+6+2+1=11 */
|
||||||
dp->time.hour, dp->time.minute, dp->time.second, /* 2+1+2+1+2+1=9 */
|
dp->time.hour, dp->time.minute, dp->time.second, /* 2+1+2+1+2+1=9 */
|
||||||
dp->time.year%100, dp->time.month, dp->time.day, /* 2+2+2+1=7 */
|
dp->time.year%100, dp->time.month, dp->time.day, /* 2+2+2+1=7 */
|
||||||
|
@ -85,7 +85,8 @@ uint16_t format_telemetry_string(char* string, struct tracker_datapoint* dp,
|
||||||
dp->battery, /* 1+1+2+1 = 5 */
|
dp->battery, /* 1+1+2+1 = 5 */
|
||||||
// dp->solar, /* 1+1+2+1 = 5 */
|
// dp->solar, /* 1+1+2+1 = 5 */
|
||||||
// dp->thermistor_temperature, /* 3+1+1+1 = 6 */
|
// dp->thermistor_temperature, /* 3+1+1+1 = 6 */
|
||||||
dp->radio_die_temperature); /* 3+1+1+1 = 6 */
|
dp->radio_die_temperature, /* 3+1+1+1 = 6 */
|
||||||
|
dp->xosc_error);
|
||||||
/* sum = 80 (must be less than or equal to 114) */
|
/* sum = 80 (must be less than or equal to 114) */
|
||||||
|
|
||||||
if (reduce_char_set) {
|
if (reduce_char_set) {
|
||||||
|
|
Ładowanie…
Reference in New Issue