GithubHelp home page GithubHelp logo

inavflight / blackbox-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cleanflight/blackbox-tools

11.0 11.0 18.0 42.57 MB

Tools for working with blackbox flight logs

License: GNU General Public License v3.0

Makefile 7.53% Roff 8.23% M4 0.43% Shell 2.58% C++ 0.36% C 68.13% HTML 9.74% CSS 0.03% Awk 0.02% JavaScript 0.04% C# 0.01% Smalltalk 1.64% Python 0.63% CMake 0.02% Perl 0.05% sed 0.01% DIGITAL Command Language 0.13% POV-Ray SDL 0.42% Ruby 0.01% Emacs Lisp 0.01%

blackbox-tools's People

Contributors

airwide avatar capnbry avatar danarrib avatar fedorcomander avatar frank-buss avatar jpemu avatar ledvinap avatar nathantsoi avatar sbman avatar shellixyz avatar stronnag avatar thenickdude avatar tippfehlr avatar zesly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

blackbox-tools's Issues

GPS not logging valid timestamp

Hi,

I tried blackbox logging and then decode the logged data to .csv files with blackbox tools.

However, the two output file for gps data lacks any meaningful timestamp. In the csv file, the 'time (us)' field is constant zero. In the gps file, 2000-01-01T00:00:00.000000Z is the timestamp in every row. On the other csv file there is correct time data.

Does anyone know why is this happening, or how can it be solved?

Thanks in advance for any help.

add LICENSE file

The project is licensed under GPL-3, but the LICENSE file is missing.

Datetime wrong on gpx generated file

blackbox_decode genarate a gpx file with not corresponds to the correct timestamp from log.txt file. It always some minutes above the correct time. Like 10, 8 or 3 minutes above correct time. Another observation: The osd displays the correct datetime!!!! :(

BB log doesn't decode but opens without problems in explorer

When decoding the attached log with blackbox_decode it prints

Log 1 of 1Statistics
I frames       1  112.0 bytes avg      112 bytes total
H frames       9    1.0 bytes avg        9 bytes total
G frames      13    1.0 bytes avg       13 bytes total
E frames       2    4.5 bytes avg        9 bytes total
S frames      10    1.0 bytes avg       10 bytes total
Frames         1  112.0 bytes avg      112 bytes total
Data rate: Unknown, no timing information available.

29011 frames failed to decode, rendering 31805 loop iterations unreadable.

and produces a CSV file that's only a few KB in size. However, when I open the log in INAV Blackbox Explorer I am not able to find any problems with the log (only a few dropped frames at 00:09.210). Betaflight Blackbox Explorer on the other hand is also not able to open the log.

I am using a serial logger and I know I am pushing it with the 250Hz logging rate but I would think if I can view the log I would be able to decode it. Is this a problem with my log?

LOG009.TXT

blackbox_decode creates spaces in header CSV

Hi there.

I've noticed that in the headers of the exported CSV file using the blackbox_decode have a space before the heading name.
For example, "axisRate[0]" will actually be " axisRate[0]"

INAV 7 not logging yaw set point or rc command

I notice that yaw set point and yaw RC command are not being logging in INAV 7. Tried logfiles from serveral different sources. It just shows a string of zeros. roll and pitch are fine. here is a screenshot of an example, zoomed 500%. yaw (YELLOW) is perfectly flat with no deviation from 0.

image

Export 3d speed in mph and other units

Current Behavior
Ground speed in various units, alt in cm

Desired Behavior
3D Speed is several units

Suggested Solution
Coded into inav BB decoder

Who does this impact? Who is this for?
All

Please.

presumable Incorrect parsing of GPS altitude

I noticed that GPS altitude in the GPX files produced by INAV blackbox decoder appear multiplied by 10. E.G. if altitude in the goggles was 100 meters, the GPX file reports 1000. I played doing some tests crossing - Betaflight and INAV produced blackbox files - with - Betaflight and INAV blackbox decoders -. All codes and files were relatively recent. The test results have been:

decoder blackbox altitude

INAV INAV NOK
INAV Betaflight NOK
Betaflight Betaflight OK
Betaflight INAV OK

I did not debug code but I have seen in the Betaflight decoder source, commented that from rel. 4 onward "GPS_altitude" is coded in the blackbox in decimeters, not centimeters. The decoder for Betaflight does therefore correctly the conversion in meters.
The INAV decoder does no conversion.
An hypothesis: also INAV encodes now "GPS_altitude" in the blackbox in decimeters (and this is the reason the actual decoder reports it x10) ?

Blackbox decoder crashes (segfault) in inflight adjustments

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Decoding log '/home/jrh/dl/LOG00017.TXT' to '/home/jrh/dl/LOG00017.01.csv'...

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7db7505 in __strlen_avx2 () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff7db7505 in __strlen_avx2 () from /usr/lib/libc.so.6
#1  0x00007ffff7cc3408 in __vfprintf_internal () from /usr/lib/libc.so.6
#2  0x00007ffff7cae56a in fprintf () from /usr/lib/libc.so.6
#3  0x000055555555dfbd in onEvent (log=0x7ffff7b4f010, event=0x55555556c6d8)
    at .//src/blackbox_decode.c:344
#4  0x000055555555ad04 in completeEventFrame (log=0x7ffff7b4f010, 
    stream=0x55555556cf30, frameType=69 'E', 
    frameStart=0x7ffff4ebfc4e "E\r\037\062P\316\002", 
    frameEnd=0x7ffff4ebfc52 "P\316\002", raw=false) at .//src/parser.c:1324
#5  0x000055555555b5c0 in flightLogParse (log=0x7ffff7b4f010, logIndex=0, 
    onMetadataReady=0x555555560001 <onMetadataReady>, 
    onFrameReady=0x55555555f608 <onFrameReady>, 
    onEvent=0x55555555dc79 <onEvent>, raw=false) at .//src/parser.c:1526
#6  0x0000555555560e95 in decodeFlightLog (log=0x7ffff7b4f010, 
    filename=0x7fffffffe143 "/home/jrh/dl/LOG00017.TXT", logIndex=0)
    at .//src/blackbox_decode.c:1195
#7  0x0000555555561855 in main (argc=3, argv=0x7fffffffdd38)
    at .//src/blackbox_decode.c:1493
(gdb) quit

Alas, not my log and I don't have permission to share it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.