Fix WS2812 led definition
[inav.git] / src / main / fc / stats.h
blob275460643c31414a25410222ba096e487055e1e4
2 #pragma once
3 #ifdef USE_STATS
5 typedef struct statsConfig_s {
6 uint32_t stats_total_time; // [s]
7 uint32_t stats_total_dist; // [m]
8 #ifdef USE_ADC
9 uint32_t stats_total_energy; // deciWatt hour (x0.1Wh)
10 #endif
11 uint8_t stats_enabled;
12 } statsConfig_t;
14 uint32_t getFlyingEnergy(void);
15 void statsOnArm(void);
16 void statsOnDisarm(void);
18 #else
20 #define statsOnArm() do {} while (0)
21 #define statsOnDisarm() do {} while (0)
23 #endif