kopia lustrzana https://github.com/bristol-seds/pico-tracker
[ubseds14][payload] Update payload formats for UBSEDS14
rodzic
7e1de86272
commit
b303de6eff
|
@ -100,7 +100,7 @@ void encode_telemetry(char* str, tracker_datapoint* dp)
|
|||
base91_encode(str+0, 2, (dp->battery * 1000)); /* Battery never > 8V */
|
||||
/* base91_encode(str+2, 2, (dp->solar * 1000)); /\* Solar never > 8V *\/ */
|
||||
base91_encode(str+2, 2, ((dp->thermistor_temperature+273.2)*10)); /* Temp never > 526º! */
|
||||
base91_encode(str+4, 2, ((dp->bmp180_temperature+273.2)*10)); /* Temp never > 526º! */
|
||||
base91_encode(str+4, 2, ((dp->radio_die_temperature+273.2)*10)); /* Temp never > 526º! */
|
||||
base91_encode(str+6, 2, dp->satillite_count); /* Small! */
|
||||
base91_encode(str+8, 2, dp->time_to_first_fix); /* Small! */
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
#include "xosc.h"
|
||||
#include "sequencer.h"
|
||||
|
||||
#define CALLSIGN "UBSEDS13"
|
||||
#define CALLSIGN "UBSEDS14"
|
||||
#define APRS_COMMENT ""
|
||||
|
||||
/**
|
||||
|
@ -69,16 +69,15 @@ uint16_t format_telemetry_string(char* string, struct tracker_datapoint* dp,
|
|||
|
||||
/* sprintf - full string (approx 90 chars) */
|
||||
len += sprintf(telemetry_string + len,
|
||||
"%s,%02u:%02u:%02u,%02u%02u%02u,%02.4f,%03.4f,%ld,%u,%u,%ld,%.2f,%.1f,%.1f,%.1f",
|
||||
"%s,%02u:%02u:%02u,%02u%02u%02u,%02.4f,%03.4f,%ld,%u,%u,%.2f,%.1f,%.1f",
|
||||
CALLSIGN, /* 2+6+2+1=11 */
|
||||
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 */
|
||||
lat_fmt, lon_fmt, altitude, dp->satillite_count, /* 3+1+4+1 + 4+1+4+1 + 5+1 + 2+1 = 28 */
|
||||
dp->time_to_first_fix, dp->main_pressure, /* 2+1 + 5+1 = 9 */
|
||||
dp->time_to_first_fix, /* 2+1 = 3 */
|
||||
dp->battery, dp->thermistor_temperature, /* 1+1+2+1 + 3+1+1+1 = 11 */
|
||||
dp->bmp180_temperature, /* 3+1+1+1 = 6 */
|
||||
dp->radio_die_temperature); /* 3+1+1+1 = 6 */
|
||||
/* sum = 87 (must be less than or equal to 114) */
|
||||
/* sum = 75 (must be less than or equal to 114) */
|
||||
|
||||
if (reduce_char_set) {
|
||||
/* Reduce character set */
|
||||
|
|
Ładowanie…
Reference in New Issue