inav icon indicating copy to clipboard operation
inav copied to clipboard

Add flights counter to stats

Open TransientTetra opened this issue 1 year ago • 6 comments

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.

TransientTetra avatar May 11 '24 18:05 TransientTetra

I think uint16_t would be plenty to be honest. That's enough for 1 flight a day for 179 years 🤣

MrD-RC avatar May 12 '24 07:05 MrD-RC

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.

MrD-RC avatar May 12 '24 07:05 MrD-RC

Any updates on this?

TransientTetra avatar Jun 11 '24 13:06 TransientTetra

Any updates on this?

Seems OK to me other than the minor formatting comment I made.

breadoven avatar Jun 13 '24 09:06 breadoven

Any additional suggestions or requests on this? Style now is according to @breadoven request, min flight distance was changed to 30m

TransientTetra avatar Jul 06 '24 19:07 TransientTetra

Hey, how do we go forward with this?

TransientTetra avatar Jul 25 '24 18:07 TransientTetra