-
-
Notifications
You must be signed in to change notification settings - Fork 147
/
index.html
3202 lines (3111 loc) · 201 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html class="no-js isBF">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Betaflight - Blackbox Explorer</title>
<link rel="icon" type="image/png" href="images/bf_icon_128.png">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/jquery.nouislider.min.css">
<link rel="stylesheet" href="src/css/main.css">
<link rel="stylesheet" href="src/css/header_dialog.css">
<link rel="stylesheet" href="src/css/keys_dialog.css">
<link rel="stylesheet" href="src/css/user_settings_dialog.css">
<link rel="stylesheet" href="src/css/menu.css">
<script src="/js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
</head>
<body>
<!-- Welcome Page -->
<div class="welcome-pane">
<div class="container">
<div class="jumbotron">
<h1>Welcome to the Enhanced Blackbox Explorer!</h1>
<p>This tool allows you to view and analyze logs created by Cleanflight's and Betaflight's Blackbox feature.</p>
<span class="btn btn-primary btn-lg btn-file" data-toggle="tooltip" title="Start by opening a log or video file"> Open log file/video
<input type="file" class="file-open" accept=".bbl,.txt,.cfl,.bfl,.log,.avi,.mov,.mp4,.mpeg,.json" multiple />
</span>
<span id="loading-file-text" class="hiddenElement loading-message"></span>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
Introduction to Blackbox
</div>
<div class="panel-body">
<p>
The Blackbox feature is built in to
<a href="https://github.com/cleanflight/cleanflight" target="_blank" rel="noopener noreferrer">Cleanflight</a> and
<a href="https://github.com/betaflight/betaflight/releases" target="_blank" rel="noopener noreferrer">Betaflight</a>, and is supported on most of CF's flight controllers (Naze32, CC3D, SPRacingF3,
etc.).
</p>
<p>
To get started with Blackbox recording, read
<a href="https://github.com/betaflight/betaflight/blob/master/docs/Blackbox.md" target="_blank" rel="noopener noreferrer">Cleanflight and Betaflight's Blackbox feature documentation</a>.
</p>
<p>
Already have a log recorded? View
<a href="https://github.com/betaflight/blackbox-tools/blob/master/Readme.md" target="_blank" rel="noopener noreferrer">the documentation for this log viewer</a> for details on how to best use this tool.
</p>
<p>
If you believe you've found a bug in this viewer (e.g. the viewer crashes upon attempting to open a log file), or you have
a suggestion, please add it to
<a href="https://github.com/betaflight/blackbox-log-viewer/issues" target="_blank" rel="noopener noreferrer">the viewer's GitHub bug tracker</a>.
</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
Tuning your craft
</div>
<div class="panel-body">
<p>
The Blackbox can deliver insights on your flight performance that will allow you to tune variables such as your PIDs and
low-pass filter settings.
</p>
<p>
For help and instructions on how to tune your craft, please read some of these resources:
</p>
<ul>
<li>
<a href="http://www.rcgroups.com/forums/showthread.php?t=2439428" target="_blank" rel="noopener noreferrer">Mini quad PID tuning from start to finish</a> by Joshua Bardwell on RCGroups.com
</li>
<li>
<a href="http://www.rcgroups.com/forums/showthread.php?t=2386267" target="_blank" rel="noopener noreferrer">Blackbox log analyzation/help thread</a> on RCGroups.com
</li>
<li>
<a href="https://github.com/cleanflight/cleanflight/blob/master/docs/PID%20tuning.md" target="_blank" rel="noopener noreferrer">Cleanflight and Betaflight's PID tuning documentation</a>
</li>
<li>
<a href="http://www.rcgroups.com/forums/showthread.php?t=2249574" target="_blank" rel="noopener noreferrer">Cleanflight support topic</a> on RCGroups.com
</li>
<li>
<a href="http://www.rcgroups.com/forums/showthread.php?t=2464844" target="_blank" rel="noopener noreferrer">Betaflight support topic</a> on RCGroups.com
</li>
<li>
<a href="http://www.rcgroups.com/forums/showthread.php?t=2299805" target="_blank" rel="noopener noreferrer">Blackbox announcement topic (original viewer)</a> on RCGroups.com
</li>
<li>
<a href="http://www.rcgroups.com/forums/showthread.php?t=2649495" target="_blank" rel="noopener noreferrer">Enhanced Blackbox announcement topic (this viewer)</a> on RCGroups.com
</li>
</ul>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
Other tools
</div>
<div class="panel-body">
<p>
If you want to analyze your logs with your own mathematics package (such as Matlab) you can use the separate
<a href="https://github.com/betaflight/blackbox-tools/" target="_blank" rel="noopener noreferrer">blackbox_decode tool</a>
to convert your log file into a CSV file for analysis.
</p>
<p>
If you want to share your log as a video, you can use the"export video" button at the top to render a WebM video, or use
the commandline
<a href="https://github.com/betaflight/blackbox-tools/" target="_blank" rel="noopener noreferrer">blackbox_render tool</a>
tool to turn your log into a series of PNG files, or use a screen recording tool to record the playback of this log viewer.
</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
Version
</div>
<div class="panel-body">
<p>
<div id="viewer-version">
<!-- current version shown here -->
</div>
</p>
<p class="viewer-download">
The latest official version is
<a class="btn btn-default btn-md btn-viewer-download" data-toggle="tooltip" title="Goto the latest version download page"
href="https://github.com/betaflight/blackbox-log-viewer/releases/latest" target="_blank" rel="noopener noreferrer">
vX.X.XX </a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Navigation Bar -->
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
<div class="container header-pane">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"
aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-logo">
<div>
<img src="/images/cf_logo_white.svg" class="navbar-brand" />
<span>Blackbox Explorer</span>
</div>
<a class="navbar-brand log-filename" html="#"></a>
</div>
</div>
<div id="navbar" class="navbar-collapse collapse">
<div class="navbar-form navbar-right" role="form">
<div class="btn-group">
<a class="btn btn-default btn-new-window" data-toggle="tooltip" title="Open a new Blackbox Log Viewer window"> New Window </a>
<a class="btn btn-primary btn-video-export" data-toggle="tooltip" title="Export your video and chart setup to file"> Export video...</a>
<a class="btn btn-primary btn-workspaces-export" data-toggle="tooltip" title="Export your workspace configurations to file">
Export Workspaces...</a>
<a class="btn btn-primary btn-csv-export" data-toggle="tooltip" title="Export your current graphs to CSV file"> Export CSV...</a>
<a class="btn btn-primary btn-gpx-export" data-toggle="tooltip" title="Export your flight to GPX file"> Export GPX...</a>
<span class="btn btn-primary btn-file" data-toggle="tooltip" title="Open another log file, video file, exported workspace file or configuration dump file">
Open log file/video
<input type="file" class="file-open" accept=".bbl,.txt,.cfl,.bfl,.log,.avi,.mov,.mp4,.mpeg,.json" multiple />
</span>
</div>
<div class="btn-group" style="display: none;">
<button type="button" class="btn btn-default view-zoom-in" data-toggle="tooltip" title="Zoom In Window">
<span class="glyphicon glyphicon-zoom-in"></span>
</button>
<button type="button" class="btn btn-default view-zoom-out" data-toggle="tooltip" title="Zoom Out Window">
<span class="glyphicon glyphicon-zoom-out"></span>
</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-nobg open-user-settings-dialog" data-toggle="tooltip" title="Show Settings">
<span class="glyphicon glyphicon-cog"></span>
</button>
<button type="button" class="btn btn-nobg open-keys-dialog" data-toggle="tooltip" title="Show Shortcuts">
<span class="glyphicon glyphicon-question-sign"></span>
</button>
</div>
</div>
</div>
</div>
</nav>
<!-- Main Page -->
<div class="container-fluid main-pane">
<ul class="video-top-controls list-unstyled">
<li class="log-view-panel">
<h4>View</h4>
<div class="dropdown view-buttons">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="view-menu">
View
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="view-menu">
<li>
<a href="#" class="open-header-dialog auto-hide-menu" data-toggle="tooltip" title="View/hide header">
<span class="glyphicon glyphicon-info-sign"></span> Header
<span class="pull-right">H</span>
</a>
</li>
<li>
<a href="#" class="view-table auto-hide-menu" data-toggle="tooltip" title="View/hide statistics display">
<span class="glyphicon glyphicon-list-alt"></span> Values Table
<span class="pull-right">T</span>
</a>
</li>
<li class="divider"></li>
<li class="dropdown-header">Overlay</li>
<li>
<a href="#" id="auto-hide-menu" class="view-video auto-hide-menu" data-toggle="tooltip" title="View/hide video display">
<span class="glyphicon glyphicon-film"></span> Video
</a>
</li>
<li>
<a href="#" id="auto-hide-menu" class="view-craft auto-hide-menu" data-toggle="tooltip" title="View/hide craft display">
<span class="glyphicon glyphicon-plane"></span> Craft
</a>
</li>
<li>
<a href="#" id="auto-hide-menu" class="view-sticks auto-hide-menu" data-toggle="tooltip" title="View/hide stick display">
<span class="glyphicon glyphicon-pawn"></span> Sticks
</a>
</li>
<li>
<a href="#" id="auto-hide-menu" class="view-analyser auto-hide-menu" data-toggle="tooltip" title="View/hide analyser display">
<span class="glyphicon glyphicon-equalizer"></span> Analyser
<span class="pull-right">A</span>
</a>
</li>
<li>
<a href="#" id="auto-hide-menu" class="view-map auto-hide-menu" data-toggle="tooltip" title="View/hide map">
<span class="glyphicon glyphicon-map-marker"></span> Map
</a>
</li>
</ul>
</div>
<div class="btn-group view-buttons-expanded" role="group">
<button type="button" class="btn btn-default view-config" data-toggle="tooltip" title="View graph">
<span class="glyphicon glyphicon-home"></span>
</button>
<button type="button" class="btn btn-default open-header-dialog" data-toggle="tooltip" title="View log header">
<span class="glyphicon glyphicon-info-sign"></span>
</button>
<button type="button" class="btn btn-default view-table" data-toggle="tooltip" title="View table">
<span class="glyphicon glyphicon-list-alt"></span>
</button>
</div>
</li>
<li class="log-overlay-panel view-buttons-expanded">
<h4>Overlay</h4>
<div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default view-video" data-toggle="tooltip" title="View/hide video display">
<span class="glyphicon glyphicon-film"></span>
</button>
<button type="button" class="btn btn-default view-craft" data-toggle="tooltip" title="View/hide craft display">
<span class="glyphicon glyphicon-plane"></span>
</button>
<button type="button" class="btn btn-default view-sticks" data-toggle="tooltip" title="View/hide stick display">
<span class="glyphicon glyphicon-pawn"></span>
</button>
<button type="button" class="btn btn-default view-analyser-sticks" style="display:none" data-toggle="tooltip" title="View/hide stick analyser">
<span class="glyphicon glyphicon-screenshot"></span>
</button>
<button type="button" class="btn btn-default view-analyser" data-toggle="tooltip" title="View/hide analyser display">
<span class="glyphicon glyphicon-equalizer"></span>
</button>
<button type="button" class="btn btn-default view-map" data-toggle="tooltip" title="View/hide map">
<span class="glyphicon glyphicon-map-marker"></span>
</button>
</div>
</div>
</li>
<li class="log-playback-panel">
<h4>Playback</h4>
<div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default video-jump-start" data-toggle="tooltip" title="Jump to start of video">
<span class="glyphicon glyphicon-fast-backward"></span>
<span class="glyphicon-text-alike">VID</span>
</button>
<button type="button" class="btn btn-default log-jump-start" data-toggle="tooltip" title="Jump to start of log">
<span class="glyphicon glyphicon-fast-backward"></span>
</button>
<button type="button" class="btn btn-default log-jump-back" data-toggle="tooltip" title="Jump back">
<span class="glyphicon glyphicon-step-backward"></span>
</button>
<button type="button" class="btn btn-default log-play-pause" data-toggle="tooltip" title="Play/Pause log/video">
<span class="glyphicon glyphicon-play"></span>
</button>
<button type="button" class="btn btn-default log-jump-forward" data-toggle="tooltip" title="Jump forward">
<span class="glyphicon glyphicon-step-forward"></span>
</button>
<button type="button" class="btn btn-default log-jump-end" data-toggle="tooltip" title="Jump to end of log">
<span class="glyphicon glyphicon-fast-forward"></span>
</button>
<button type="button" class="btn btn-default video-jump-end" data-toggle="tooltip" title="Jump to end of video">
<span class="glyphicon-text-alike">VID</span>
<span class="glyphicon glyphicon-fast-forward"></span>
</button>
</div>
</div>
</li>
<li class="log-playback-rate-panel">
<h4>Speed</h4>
<div class="form-inline">
<div class="form-group">
<div class="btn-group playback-rate">
<div class="dropdown">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="playback-rate">
Speed
<span class="caret"></span>
</button>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="playback-rate">
<li>
<div class="pull-right">
<div class="panel-body">
<div class="playback-rate-control btn-group btn-group-vertical"></div>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="playback-rate-expanded">
<div class="playback-rate-control btn-group btn-group-vertical" data-toggle="tooltip" title="Directly set the playback speed"></div>
</div>
</div>
</div>
</li>
<li class="log-chart-zoom-panel">
<h4>Zoom</h4>
<div class="form-inline">
<div class="form-group">
<div class="btn-group zoom-menu">
<div class="dropdown">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="zoom-menu">
Zoom
<span class="caret"></span>
</button>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="zoom-menu">
<li>
<div class="pull-right">
<div class="panel-body">
<div class="graph-zoom-control btn-group btn-group-vertical"></div>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="graph-zoom-expanded">
<div class="graph-zoom-control btn-group btn-group-vertical" data-toggle="tooltip" title="Directly set the zoom level"></div>
</div>
</div>
</div>
</li>
<li class="log-chart-time-panel small-screen">
<h4>Time</h4>
<div class="form-inline">
<div class="form-group">
<input type="text" class="form-control graph-time" value="1.0" size="8" data-toggle="tooltip" title="Enter a time to jump to">
</div>
</div>
</li>
<li class="log-sync-panel">
<h4>Log sync</h4>
<div class="form-inline">
<div class="form-group">
<div class="btn-group sync-menu">
<div class="dropdown">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="sync-menu">
Sync
<span class="caret"></span>
</button>
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="sync-menu">
<li>
<div class="pull-right">
<div class="panel-body">
Sync
<button type="button" class="btn btn-default log-sync-back" data-toggle="tooltip" title="Move log earlier">
<span class="glyphicon glyphicon-step-backward"></span>
</button>
<input type="text" class="form-control video-offset" value="+0.0" size="7" data-toggle="tooltip" title="Enter a time offset">
<button type="button" class="btn btn-default log-sync-forward" data-toggle="tooltip" title="Move log later">
<span class="glyphicon glyphicon-step-forward"></span>
</button>
</div>
</div>
</li>
<li>
<a href="#" class="log-sync-here auto-hide-menu" data-toggle="tooltip" title="Set the log start to this video frame">
<span class="glyphicon glyphicon-object-align-left"></span> Start Log Here
</a>
</li>
<li class="has-marker">
<a href="#" class="log-smart-sync auto-hide-menu" data-toggle="tooltip" title="Set the marked position to here...">
<span class="glyphicon glyphicon-object-align-vertical"></span> Smart Sync
<span class="pull-right">⌥M</span>
</a>
</li>
</ul>
</div>
</div>
<div class="log-sync-expanded">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default log-sync-back" data-toggle="tooltip" title="Move log earlier">
<span class="glyphicon glyphicon-step-backward"></span>
</button>
<button type="button" class="btn btn-default log-sync-here" data-toggle="tooltip" title="Start log here">
<span class="glyphicon glyphicon-object-align-left"></span>
</button>
<button type="button" class="btn btn-default log-sync-forward" data-toggle="tooltip" title="Move log later">
<span class="glyphicon glyphicon-step-forward"></span>
</button>
</div>
<input type="text" class="form-control video-offset" value="+0.0" size="7" data-toggle="tooltip" title="Enter a time offset">
</div>
</div>
</div>
</li>
<li class="log-workspace-panel">
<h4>Workspace</h4>
<div class="log-workspace-selection"></div>
<div class="flexDiv">
<div class="selectWrapper">
<div class="dropdown-content" id="default_workspaces_menu"></div>
</div>
</div>
</li>
</ul>
<div id="screenshot-frame" class="graph-row">
<div class="log-graph">
<video></video>
<canvas width="200" height="100" id="graphCanvas"></canvas>
<canvas width="0" height="0" id="craftCanvas"></canvas>
<div id="analyser" class="analyser">
<canvas width="0" height="0" id="analyserCanvas"></canvas>
<span id="spectrumToolbar">
<div id="spectrumType" data-toggle="tooltip" title="Type of Spectrum">
<select id="spectrumTypeSelect">
<option value="0">Frequency</option>
<option value="1">Freq. vs Throttle</option>
<option value="3">Freq. vs RPM</option>
<option value="2">Error vs Setpoint</option>
</select>
</div>
<div id="overdrawSpectrumType" data-toggle="tooltip" title="Show Filters">
<select id="overdrawSpectrumTypeSelect">
<option value="0">Show all filters</option>
<option value="1">Show only Gyro filters</option>
<option value="2">Show only D-Term filters</option>
<option value="3">Show only Yaw filters</option>
<option value="4">Hide all filters</option>
<option value="5">Auto</option>
</select>
</div>
<div id="spectrumComparison" data-toggle="tooltip" title="Spectrum comparison">
<button id="btn-spectrum-export" type="button" title="Export spectrum to CSV">Export</button>
<button type="button" onclick="document.getElementById('btn-spectrum-import').click()" title="Import spectrum from CSV">Import</button>
<input type="file" id="btn-spectrum-import" accept=".csv" style="display:none" multiple/>
<button type="button" id="btn-spectrum-clear" title="Clear imported spectrums">Clear</button>
</div>
<div id="analyserResize" class="btn-nobg view-analyser-fullscreen" data-toggle="tooltip" title="Zoom Analyser Window">
<span class="glyphicon glyphicon-resize-full"></span>
<span class="glyphicon glyphicon-resize-small"></span>
</div>
</span>
<input id="analyserZoomX" class="onlyFullScreen" type="range" name="analyserZoomX" value="100" min="100" max="500" step="10" title="" list="analyserZoomXTicks"
/>
<input id="analyserZoomY" class="onlyFullScreen" type="range" name="analyserZoomY" value="100" min="10" max="1000" step="10" list="analyserZoomYTicks"
/>
<datalist id="analyserZoomXTicks">
<option>100</option>
<option>200</option>
<option>300</option>
<option>400</option>
<option>500</option>
</datalist>
<datalist id="analyserZoomYTicks">
<option>100</option>
</datalist>
</div>
<div id="mapContainer" class="map-container"></div>
<canvas width="0" height="0" id="stickCanvas"></canvas>
<span class="log-open-legend-dialog glyphicon glyphicon-cog" data-toggle="tooltip" title="Show the legend"></span>
</div>
<div class="log-graph-config">
<h2 id="legend_title">Legend
<span class="log-close-legend-dialog glyphicon glyphicon-remove" data-toggle="tooltip" title="Hide the legend"></span>
</h2>
<div class="log-index"></div>
<div class="log-graph-legend">
</div>
<div class="btn-group override-button-group" role="group">
<button type="button" class="btn btn-nobg btn-svg-icon toggle-expo" data-toggle="tooltip" title="Expo On/Off">
<svg width="24" height="24" viewBox="0 0 8.467 8.467">
<path fill="none" stroke="#FFF" stroke-linecap="round" stroke-width=".5" d="M0 4.233s2.117 5.292 4.233 0c2.117-5.291 4.234 0 4.234 0"/>
<path fill="#FFF" d="M4.233 0L3.175 1.058h2.117L4.233 0zm0 1.058L3.175 2.117h.794V6.35h-.794l1.058 1.058L5.292 6.35h-.794V2.117h.794L4.233 1.058zm0 6.35H3.175l1.058 1.059 1.059-1.059H4.233z"/>
</svg>
</button>
<button type="button" class="btn btn-nobg btn-svg-icon toggle-smoothing" data-toggle="tooltip" title="Smoothing On/Off">
<svg width="24" height="24" viewBox="0 0 8.467 8.467">
<path fill="none" stroke="#FFF" stroke-linecap="round" stroke-width=".5" d="M0 4.233s2.117 5.292 4.233 0c2.117-5.291 4.234 0 4.234 0"></path>
<path fill="none" stroke="#FFF" stroke-linecap="round" stroke-linejoin="round" stroke-width=".265"
d="M0 4.233l1.058 3.97 1.059-2.911 1.058 2.91 1.058-7.144 1.059 4.234L6.35.265l1.058 3.968h1.059"></path>
</svg>
</button>
<button type="button" class="btn btn-nobg btn-svg-icon toggle-grid" data-toggle="tooltip" title="Grid On/Off">
<svg width="24" height="24" viewBox="0 0 8.467 8.467">
<path fill="none" stroke="#FFF" stroke-linecap="round" stroke-width=".5" d="M0 4.233s2.117 5.292 4.233 0c2.117-5.291 4.234 0 4.234 0"/>
<g fill="none" stroke="#FFF" stroke-width=".198">
<path d="M0 3.175h8.467M0 7.408h8.467M0 5.292h8.467M0 1.058h8.467" opacity=".75"/>
</g>
</svg>
</button>
</div>
<button type="button" class="btn btn-default btn-block open-graph-configuration-dialog" data-toggle="tooltip" title="Setup chart pens">Graph setup</button>
</div>
<div class="mouseNotification"></div>
</div>
<div class="log-field-values" id="log-field-values">
<a href="#log-field-values">
<h4>Field values</h4>
</a>
<table class="table table-condensed">
<thead>
<tr>
<th> </th>
<th>Raw value</th>
<th>Decoded</th>
<th> </th>
<th>Raw value</th>
<th>Decoded</th>
</tr>
</thead>
<tbody>
<tr>
<!-- auto filled by updateValues function -->
</tr>
</tbody>
</table>
<a href="#log-field-values">
<h4>Statistics</h4>
</a>
<table id="stats-table" class="table table-condensed">
<caption>Min/max values from this log</caption>
<thead>
<tr>
<th> </th>
<th>Min</th>
<th>Max</th>
<th>Mean</th>
</tr>
</thead>
<tbody>
<tr>
<!-- auto filled by updateValues function -->
</tr>
</tbody>
</table>
</div>
<div class="configuration-file" id="configuration-file">
<!-- auto filled by configuration function -->
</div>
</div>
<!-- Log Scroll bar -->
<div id="log-seek-bar" class="log-seek-bar">
<canvas width="200" height="100"></canvas>
<span id="seekbarToolbar" class="non-shift">
<div id="seekbarType" class="seekBar-selection" data-toggle="tooltip" title="Vaue to plot">
</div>
</span>
</div>
<!-- Status Bar -->
<div id="status-bar">
<div>
<span class="version">-</span>
</div>
<div>
<span class="log-cells">-</span>
</div>
<div>
<span class="looptime">-</span>
</div>
<div>
<span class="lograte">-</span>
</div>
<div>
<span class="actual-lograte">-</span>
</div>
<div>
<span class="flight-mode">-</span>
</div>
<div>
<span class="marker-offset">00:00.000</span>
</div>
<div class="bookmark-1">
<span>1</span>
</div>
<div class="bookmark-2">
<span>2</span>
</div>
<div class="bookmark-3">
<span>3</span>
</div>
<div class="bookmark-4">
<span>4</span>
</div>
<div class="bookmark-5">
<span>5</span>
</div>
<div class="bookmark-6">
<span>6</span>
</div>
<div class="bookmark-7">
<span>7</span>
</div>
<div class="bookmark-8">
<span>8</span>
</div>
<div class="bookmark-9">
<span>9</span>
</div>
<div class="bookmark-clear">
<span>Clear All</span>
</div>
<div>
<span class="configuration-file-name">-</span>
</div>
<div>
<span class="viewer-version">-</span>
</div>
</div>
<!-- Dialog Boxes and Popup Windows -->
<div class="modal fade graph-configuration-dialog" id="dlgGraphConfiguration">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" data-toggle="tooltip" title="Close without saving changes">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Configure graphs</h4>
</div>
<div class="modal-body" padding-left:5px;>
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle config-graphs-add" data-toggle="dropdown" aria-expanded="false">
<span class="glyphicon glyphicon-plus"></span> Add graph
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
</ul>
</div>
<button type="button" class="btn btn-default config-graphs-remove-all-graphs pull-right" style="display:none;">
<span class="glyphicon glyphicon-trash"></span> Remove all graphs</button>
<ul class="list-unstyled config-graphs-list">
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default graph-configuration-dialog-cancel" data-dismiss="modal" data-toggle="tooltip"
title="Close without saving changes">Cancel</button>
<button type="button" class="btn btn-primary graph-configuration-dialog-save" data-dismiss="modal" data-toggle="tooltip"
title="Close and save changes">Apply changes</button>
</div>
</div>
</div>
</div>
<div class="modal fade header-dialog" id="dlgHeaderDialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" data-toggle="tooltip" title="Close">
<span aria-hidden="true">×</span>
</button>
<h5 class="modal-title-craft"></h5>
<h5 class="modal-title-revision"></h5>
</div>
<div class="modal-body">
<form name="header-information" id="pid-tuning">
<div class="cf_column half left">
<div class="spacer_left">
<div class="gui_box grey PID-settings">
<div class="gui_box_titlebar">
<div class="spacer_box_title">PID SETTINGS</div>
</div>
<div class="spacer_box">
<table id="pid_main_header" class="parameter cf">
<thead>
<tr>
<th>PID Values</th>
</tr>
</thead>
</table>
<table id="pid_main" class="pid_tuning">
<tr class = "pid_labels">
<th name="Blank">
<label> </label>
</th>
<th name="Proportional">
<label>P</label>
</th>
<th name="Integral">
<label>I</label>
</th>
<th id="derivativeColumn" name="Derivative">
<label>D</label>
</th>
<th id="dMaxColumn" name="D_Max">
<label>D Max</label>
</th>
<th name="Feedforward">
<label>FF</label>
</th>
</tr>
<tbody id="pid_tbody"></tbody>
</table>
<script>
const axes = ['Roll', 'Pitch', 'Yaw'];
const pidTbody = document.getElementById('pid_tbody');
axes.forEach(axis => {
const row = `<tr class="${axis.toLowerCase()}PID">
<td>${axis}</td>
<td><input type="text" name="p" step="1" min="0" max="255" /></td>
<td><input type="text" name="i" step="1" min="0" max="255" /></td>
<td><input type="text" name="d" step="1" min="0" max="255" /></td>
<td><input type="text" name="dMax" step="1" min="0" max="255" /></td>
<td><input type="text" name="f" step="1" min="0" max="255" /></td>
</tr>`;
pidTbody.innerHTML += row;
});
</script>
<table id="pid_baro_header" class="parameter cf">
<thead>
<tr>
<th>Baro</th>
</tr>
</thead>
</table>
<table id="pid_baro" class="pid_tuning">
<tr class="altPID">
<!-- 3 -->
<td>ALT</td>
<td>
<input type="text" name="p" step="0.1" min="0" max="25.5" />
</td>
<td>
<input type="text" name="i" step="0.001" min="0" max="0.255" />
</td>
<td>
<input type="text" name="d" step="1" min="0" max="255" />
</td>
<td></td>
</tr>
<tr class="velPID">
<!-- 9 -->
<td>VEL</td>
<td>
<input type="text" name="p" step="0.1" min="0" max="25.5" />
</td>
<td>
<input type="text" name="i" step="0.001" min="0" max="0.255" />
</td>
<td>
<input type="text" name="d" step="1" min="0" max="255" />
</td>
<td></td>
</tr>
</table>
<table id="pid_mag_header" class="parameter cf">
<thead>
<tr>
<th>Mag</th>
</tr>
</thead>
</table>
<table id="pid_mag" class="pid_tuning">
<tr class="magPID">
<!-- 8 -->
<td>MAG</td>
<td>
<input type="text" name="p" step="0.1" min="0" max="25.5" />
</td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table id="pid_gps_header" class="parameter cf">
<thead>
<tr>
<th>GPS</th>
</tr>
</thead>
</table>
<table id="pid_gps" class="pid_tuning">
<tr class="posPID">
<!-- 4 -->
<td>POS</td>
<td>
<input type="text" name="p" step="0.01" min="0" max="2.55" />
</td>
<td>
<input type="text" name="i" step="0.01" min="0" max="2.55" />
</td>
<td></td>
<td></td>
</tr>
<tr class="posrPID">
<!-- 5 -->
<td>POSR</td>
<td>
<input type="text" name="p" step="0.1" min="0" max="25.5" />
</td>
<td>
<input type="text" name="i" step="0.01" min="0" max="2.55" />
</td>
<td>
<input type="text" name="d" step="0.001" min="0" max="0.255" />
</td>
<td></td>
</tr>
<tr class="navrPID">
<!-- 6 -->
<td>NAVR</td>
<td>
<input type="text" name="p" step="0.1" min="0" max="25.5" />
</td>
<td>
<input type="text" name="i" step="0.01" min="0" max="2.55" />
</td>
<td>
<input type="text" name="d" step="0.001" min="0" max="0.255" />
</td>
<td></td>
</tr>
</table>
<table class="parameter cf">
<thead>
<tr>
<th colspan="5">PID Sliders</th>
</tr>
</thead>
<tbody>
<tr>
<td name="simplified_pids_mode" class="bf-only">
<label>Status</label> <select>
<!-- list generated here -->
</select>
</td>
<td name="simplified_pi_gain" class="bf-only">
<label>PI gain</label>
<input type="text" step="1" min="0" max="200" />
</td>
<td name="simplified_i_gain" class="bf-only">
<label>I gain</label>
<input type="text" step="1" min="0" max="200" />
</td>
<td name="simplified_d_gain" class="bf-only">
<label>D gain</label>
<input type="text" step="1" min="0" max="200" />
</td>
<td name="simplified_d_max_gain" class="bf-only">
<label>D Max</label>
<input type="text" step="1" min="0" max="200" />
</td>
</tr>
<tr>
<td name = blankSimplPIDs>
<label> </label>
</td>
<td name="simplified_feedforward_gain" class="bf-only">
<label>FF gain</label>
<input type="text" step="1" min="0" max="200" />
</td>
<td name="simplified_pitch_d_gain" class="bf-only">
<label>Pitch:Roll</label>
<input type="text" step="1" min="0" max="200" />
</td>
<td name="simplified_pitch_pi_gain" class="bf-only">
<label>Pitch Gain</label>
<input type="text" step="1" min="0" max="200" />
</td>
<td name="simplified_master_multiplier" class="bf-only">
<label>Master Gain</label>
<input type="text" step="1" min="0" max="200" />
</td>
</tr>
</tbody>
</table>
<table class="parameter cf">
<thead>
<tr>
<th scope="row" colspan="6">Feedforward</th>
</tr>
</thead>
<tbody>
<tr>
<td name="feedforwardTransition" class="bf-only">
<label>Transition</label>
<input type="text" step="0.01" min="0" max="999" />
</td>
<td name="feedforwardAveraging" class="bf-only">
<label>Average</label>
<select>
<!-- list generated here -->
</select>
</td>
<td name="feedforwardSmoothing" class="bf-only">
<label>Smoothing</label>
<input type="text" step="0" min="0" max="100" />
</td>
<td name="feedforwardJitter" class="bf-only">
<label>Jitter</label>
<input type="text" step="0" min="0" max="100" />
</td>
<td name="feedforwardBoost" class="bf-only">
<label>Boost</label>
<input type="text" step="0" min="0" max="100" />
</td>
<td name="feedforwardMaxRate" class="bf-only">
<label>MaxRate</label>
<input type="text" step="0" min="0" max="100" />
</td>
</tr>
</tbody>
</table>
<table id="d_max" class="parameter cf">
<thead>
<tr>
<th colspan="5">D Max</th>
</tr>
</thead>
<tbody>
<tr>
<td name="d_max_gain" class="bf-only">
<label>Gain</label>
<input type="text" step="1" min="0" max="100" />
</td>
<td name="d_max_advance" class="bf-only">
<label>Advance</label>
<input type="text" step="1" min="0" max="200" />
</td>
</tr>
</tbody>
</table>
<table class="parameter cf">
<thead>
<tr>
<th colspan="5">TPA and Airmode</th>
</tr>
</thead>
<tbody>
<tr>
<td name="tpa_rate">
<label>TPA amount</label>
<input type="text" step="1" min="0" max="100" />
</td>
<td name="tpa-breakpoint">
<label>TPA Breakpoint</label>
<input type="text" step="10" min="1000" max="2000" />
</td>