inav
inav copied to clipboard
Add flights counter to stats
I'm proposing a new field to be added to stats, flight counter, i.e. number of flights. I used an assumption that a flight counts once the craft is armed and disarmed and a certain time passes between the two (same as other fields); but only once per each battery pack. I also used uint32 for the field, which I feel is a bit excessive; for uint16 max number of flights would be 32768, I'm leaning on your judgement on that matter.
I think uint16_t would be plenty to be honest. That's enough for 1 flight a day for 179 years 🤣
I'm wondering if it needs better detection for incrementing the number of flights. Just relying on the arm/disarm action can provide false positives.
Any updates on this?
Any updates on this?
Seems OK to me other than the minor formatting comment I made.
Any additional suggestions or requests on this? Style now is according to @breadoven request, min flight distance was changed to 30m
Hey, how do we go forward with this?