Merge pull request #10492 from iNavFlight/MrD_Update-OSD.md-for-8.0
[inav.git] / src / main / fc / stats.h
blob54b676f6577ff6f0727b15b020613ab2e54d7c51
2 #pragma once
3 #ifdef USE_STATS
5 typedef struct statsConfig_s {
6 uint32_t stats_total_time; // [Seconds]
7 uint32_t stats_total_dist; // [Metres]
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