Commit 1482e2d
The simple PSD spectrum comparison of one log file data (betaflight#847)
* Added sceletion of code to add PSD curves into import list by press Insert key
* Added one log PSD curves into import list by press Insert key to spectrum comparison
* Code issues improvement
* Code style improvement
* Code style improvement
Co-authored-by: Mark Haslinghuis <[email protected]>
* Added Add button to compare spectrums
* The Import Export Clear buttons captions are changed to short Exp,Imp,Clr
* The spectrums legend height is improved
* The spectrum Add button is visible for PSD curve only
* Using of toggle method to change css property
Co-authored-by: Mark Haslinghuis <[email protected]>
* Added checking of maximal imported curves count
* Code refactoring: using of getCurve method instead of direct _curvesData field access in ImportedCurves
* Code refactoring in graph_spectrum_plot: using getCurveColor method instaed of direct access to curvesColors array
* Code refactoring in graph_imported_curves.js: added using of trim method
* Semi comma issue is resolved
* Added IndexError exeption
* Resolved missing operator new issue
* Added Ctrl+Mouse click at curves legend action to show and compare it
* Code style improvement
* The imported spectrums are removed by simple mouse click at the curves legend
* The main curve is added into imported list when the second curve is selected for comparison
* The main curve is added into imported list when the second curve is imported from external file
* Imported spectrums count is increased to 6
* The spectrum comparison Add button and Insert key action are removed as lessfull
* Imported PSD curves drawing start point is improved
* Wrong IndexError exception is changed to RangeError
* Code style improvement
* The imported curves drawing start position is improved by using moveTo
* Using === !== instead of == !=
* Improved spectrums legend vertical centering
* Added comments for const values
* The code refactoring for graph hasAnalyser variable condition
Co-authored-by: Copilot <[email protected]>
* Improved errors message for RangeError exception
Co-authored-by: Copilot <[email protected]>
* The comments text is improved
* Code refactoring for main spectrum curve color
* The spectrums legend positions setup refactoring
* The code refactoring for adding main spectrum curve to imported list
* Added comment for first spectrums csv file import
* Locked the curves PSD spectrum selection while import has maximal curves count
* Added removeCurve and other helper methods into ImportedCurves
* The spectrum curve is deleted by Ctrl+Mouse click
* Code refactoring: SpectrumForImport renamed to SpectrumForComparison
* Code issues are resolved
* Code style improvement
---------
Co-authored-by: Mark Haslinghuis <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent fea0dc0 commit 1482e2d
File tree
7 files changed
+307
-109
lines changed- src
7 files changed
+307
-109
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
481 | | - | |
| 480 | + | |
| 481 | + | |
482 | 482 | | |
483 | | - | |
| 483 | + | |
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | | - | |
| 23 | + | |
16 | 24 | | |
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 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
60 | 37 | | |
61 | | - | |
62 | 38 | | |
63 | | - | |
64 | | - | |
| 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 | + | |
65 | 91 | | |
| 92 | + | |
66 | 93 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 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 | + | |
73 | 137 | | |
74 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
75 | 158 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
| |||
156 | 163 | | |
157 | 164 | | |
158 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
159 | 170 | | |
160 | 171 | | |
161 | 172 | | |
162 | 173 | | |
163 | 174 | | |
164 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
165 | 190 | | |
166 | 191 | | |
167 | 192 | | |
168 | 193 | | |
169 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
170 | 198 | | |
171 | 199 | | |
172 | 200 | | |
| |||
354 | 382 | | |
355 | 383 | | |
356 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
357 | 388 | | |
358 | 389 | | |
359 | 390 | | |
| |||
438 | 469 | | |
439 | 470 | | |
440 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
441 | 476 | | |
442 | 477 | | |
443 | 478 | | |
| |||
0 commit comments