Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iNAV log error - No predictor found for 10 #6

Closed
Matthias84 opened this issue Dec 25, 2021 · 3 comments
Closed

iNAV log error - No predictor found for 10 #6

Matthias84 opened this issue Dec 25, 2021 · 3 comments

Comments

@Matthias84
Copy link

Hi, I appreciate your lib and like to use it to load it for plots, qgis or kdenlive visualisation.
Unfortunatly the blackbox logs created by INAV 3 are .TXT files which cause the error message

~/.virtualenvs/orangebox/lib/python3.8/site-packages/orangebox/reader.py in _build_field_defs(self)
211 if prop == "predictor":
212 if framedef_value not in predictors:
--> 213 raise RuntimeError("No predictor found for {:d}".format(framedef_value))
214 else:
215 field_defs[frame_type][i].predictorfun = predictors[framedef_value]

RuntimeError: No predictor found for 10

To my understanding, as another fork of cleanflight, the blackbox structures should be compatible?
The rendering using the official blackbox-viewer by betaflight works fine so far.

@atomgomba
Copy link
Owner

I don't know about iNav, but Betaflight logs are compressed binary data, definitely not plain text. Also please note that reading GPS data is not supported by this library at the moment. If you just want an output which is more straightforward to process, you can try the CSV Export function in Blackbox Log Viewer.

@Matthias84
Copy link
Author

Hi, well yes beside of the extension, it's sort of structured information but I don't see any compression as BZIP for example.

My problem is, that blackbox viewer and blackbox utils work only on windows for me and I like to setup a blackbox workflow for linux and esp. python to debug my 1st custom drone.

Yes Predictor 10 seems to be relevant to GPS and event based value updates: https://github.com/iNavFlight/inav/blob/master/docs/development/Blackbox%20Internals.md
There is your GPS branch, does this already focus on this feature?

@atomgomba
Copy link
Owner

Support for GPS data is in development, closing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants