2020-08-26 19:57:35 +00:00
|
|
|
#ifndef __TELEMETRY_H
|
|
|
|
#define __TELEMETRY_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2020-09-01 19:56:34 +00:00
|
|
|
#include "config.h"
|
2020-08-26 19:57:35 +00:00
|
|
|
#include "gps.h"
|
|
|
|
|
|
|
|
typedef struct _telemetry_data {
|
|
|
|
uint16_t battery_voltage_millivolts;
|
2020-09-10 19:57:41 +00:00
|
|
|
uint16_t button_adc_value;
|
2020-08-26 19:57:35 +00:00
|
|
|
int32_t internal_temperature_celsius_100;
|
|
|
|
|
|
|
|
int32_t temperature_celsius_100;
|
|
|
|
uint32_t pressure_mbar_100;
|
|
|
|
uint32_t humidity_percentage_100;
|
|
|
|
|
|
|
|
gps_data gps;
|
2020-09-01 19:56:34 +00:00
|
|
|
|
|
|
|
char locator[LOCATOR_PAIR_COUNT_FULL * 2 + 1];
|
2020-08-26 19:57:35 +00:00
|
|
|
} telemetry_data;
|
|
|
|
|
|
|
|
void telemetry_collect();
|
|
|
|
|
|
|
|
#endif
|