Skip to content

ZeroDivisionError: integer division or modulo by zero #55

@cooljam

Description

@cooljam

I use inav 2.6 for a flywing, it does not have Vertical tail,and i use analyzer,it has a error in the end.
log like this :

E:\plane\pid>PID-Analyzer_0.52.exe
INFO 2021-03-21 13:16:27,247 PID-Analyzer_0.52.py:982: Decoding with 'E:\plane\pid\Blackbox_decode.exe'
INFO 2021-03-21 13:16:27,247 PID-Analyzer_0.52.py:984: PID-Analyzer 0.52
INFO 2021-03-21 13:16:27,249 PID-Analyzer_0.52.py:985: Hello Pilot!
INFO 2021-03-21 13:16:27,250 PID-Analyzer_0.52.py:999: Interactive mode: Enter log file, or type close when done.
Blackbox log file path (type or drop here): E:\plane\LOGS\blackbox_log_2021-03-20_223928.TXT
Optional plot name:210321
Show plot window when done? [Y]/NY
Bounds on noise plot: [default/last] | copy and edit | "auto"
Current: [[1.0, 10.1], [1.0, 100.0], [1.0, 100.0], [0.0, 4.0]]

WARNING 2021-03-21 13:17:44,729 PID-Analyzer_0.52.py:933: Ignoring BBL session 'E:\plane\LOGS\210321\blackbox_log_2021-03-20_223928_temp0.TXT', 61B < 500000B.
Decoding log 'E:\plane\LOGS\210321\blackbox_log_2021-03-20_223928_temp1.TXT' to 'E:\plane\LOGS\210321\blackbox_log_2021-03-20_223928_temp1.01.csv'...

Log 1 of 1, start 06:23.683, end 09:57.071, duration 03:33.388

Statistics
Looptime 1002 avg 0.5 std dev (0.1%)
I frames 1651 111.5 bytes avg 184075 bytes total
H frames 78 11.0 bytes avg 858 bytes total
G frames 6422 27.1 bytes avg 174223 bytes total
E frames 1 7.0 bytes avg 7 bytes total
S frames 2176 43.7 bytes avg 94995 bytes total
Frames 1651 111.5 bytes avg 184075 bytes total
Data rate 7Hz 6458 bytes/s 64600 baud

112 frames failed to decode, rendering 8165 loop iterations unreadable. 12 iterations are missing in total (12ms, 0.01%)
211074 loop iterations weren't logged because of your blackbox_rate settings (211719ms, 99.22%)

INFO 2021-03-21 13:17:45,016 PID-Analyzer_0.52.py:676: Reading: Log 0
WARNING 2021-03-21 13:17:45,038 PID-Analyzer_0.52.py:702: No debug[0] trace found!
WARNING 2021-03-21 13:17:45,039 PID-Analyzer_0.52.py:702: No debug[1] trace found!
WARNING 2021-03-21 13:17:45,039 PID-Analyzer_0.52.py:702: No debug[2] trace found!
WARNING 2021-03-21 13:17:45,040 PID-Analyzer_0.52.py:715: No D[2] trace found!
INFO 2021-03-21 13:17:45,042 PID-Analyzer_0.52.py:356: Processing:
INFO 2021-03-21 13:17:45,042 PID-Analyzer_0.52.py:671: roll...
Traceback (most recent call last):
File "PID-Analyzer_0.52.py", line 1027, in
File "PID-Analyzer_0.52.py", line 939, in run_analysis
File "PID-Analyzer_0.52.py", line 781, in init
File "PID-Analyzer_0.52.py", line 798, in _csv_iter
File "PID-Analyzer_0.52.py", line 358, in init
File "PID-Analyzer_0.52.py", line 672, in __analyze
File "PID-Analyzer_0.52.py", line 63, in init
File "PID-Analyzer_0.52.py", line 202, in winstacker
ZeroDivisionError: integer division or modulo by zero
blackbox_log_2021-03-20_223928.TXT

Failed to execute script PID-Analyzer_0.52

blackbox_log_2021-03-20_223928.TXT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions