kopia lustrzana https://github.com/bristol-seds/pico-tracker
[flash] add checksum status to telemetry
rodzic
abcd27912b
commit
dd4e6c8076
|
@ -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,%ld",
|
"%s,%02u:%02u:%02u,%02u%02u%02u,%02.4f,%03.4f,%ld,%u,%.2f,%.1f,%ld,%d",
|
||||||
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 */
|
||||||
|
@ -86,7 +86,8 @@ uint16_t format_telemetry_string(char* string, struct tracker_datapoint* dp,
|
||||||
// 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);
|
dp->xosc_error,
|
||||||
|
dp->flash_status);
|
||||||
/* 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