inav icon indicating copy to clipboard operation
inav copied to clipboard

Reduce number of variables written into Blackbox

Open DzikuVx opened this issue 10 years ago • 4 comments

With new data added to Blackbox in iNav, BB performance went down considerably. With the same setup in CF I'm able to record 1:1 at 2500 looptime. In iNav, with looptime 2000 it is possible to record at 1:3 ratio despite increased port speed. Same cards, same OpenLog writer.

Personally I do not think all recorder sensors are important. For example:

  • raw accelerometer
  • raw magnetometer
  • heading[roll]
  • heading[pitch]

iNav specific entries are different story.

What do you think?

DzikuVx avatar Apr 01 '16 08:04 DzikuVx

@DzikuVx Indeed, there are too many blackbox variables. However I think raw sensor data may be useful for debugging issues with sensor noise etc. Heading[] is not logged it's calculated by blackbox viewer. We should carefullt think about what variables to remove without compromising the usefulness.

digitalentity avatar Apr 01 '16 10:04 digitalentity

Yes, Ticket is mostly to remeber

DzikuVx avatar Apr 01 '16 11:04 DzikuVx

How about an option to do "lightweight blackbox logging" so that the logging can be done 1:1?

When doing pid tuning, checking for vibration and stuff like that, 1:1 logging is desired. Logging gyro, acc, pid-stuff and motors would almost be enough here i think, and should allow 1:1 logging.

When logging for navigation stuff, a slower logging rate is acceptable IMHO, so just log everything, but at a slower rate, i use 100hz right now. I can't think of anything that is not useful right now, i find the raw sensor data etc useful, i like to have it all :)

@digitalentity what do you think is the slowest logging rate that will still be useful for inav related stuff? Would even as low as 10hz still be useful?

I know that we would like to both eat the cake and have it. But i think this could be a good compromise if that's not possible.

theArchLadder avatar Apr 01 '16 16:04 theArchLadder

With a reasonable SDHC card, one can do 1:1 at practical inav rates (2000 loop time) already.

Data rate  497Hz  23364 bytes/s     233700 baud
11 frames failed to decode, rendering 106 loop iterations unreadable. 121 iterations are missing in total (242ms, 0.26%)

even on F1, sub €7.5 16GB card (Transcend Ultimate 16GB Micro SD (SDHC) Card - Class 10)

stronnag avatar Apr 01 '16 16:04 stronnag