Commit 800da33
The spectrum charts improvements. (betaflight#833)
* The FFT is used power 2 input length to get maximal fft performance
* Added Power spectral density curves chart
* The spectrum magnitude is computed by complex Re and Im value
* Added functions to compute PSD by RPM and Throttle
* Added drawing heat map for PSD values
* Added switch to select PSD by throttle or RPM charts
* Resolved issue of limit drawing psd value
* Code style improvement
* Code refactoring in src/graph_spectrum_calc.js
* Resolved missing this. issue
* Added PSD values label at mouse position cursor by Shift key
* Added PSD values label on the mouse position cursor by Shift key at the power specral density chart
* Code refactoring
* The background heatmap PSD value is changed from -70 to -100dBm
* Added PSD value to maximal noise PSD marker
* Removed needless spaces
Co-authored-by: Mark Haslinghuis <[email protected]>
* The SPECTRUM_TYPE enum members are reordered
* Code style improvement
Co-authored-by: Mark Haslinghuis <[email protected]>
* Code refactoring
* Resolved issue of wrong simple frequency spectrum data
* Code refactoring
* Improved fill data into fft input array
* Improved computing of PSD
* Code refactoring
* Resolved issue computing frequency with maximal noise at the simple spectrum chart
* Improved computing of vsBinIndex values
* Code refactoring: using of named constant
* The top margin at heatmaps charts applies for RPM axis only
* Resolved issue of filters drawing at the PSD charts
* Improved computing of top margin value at vs RPM charts
* Set properly value for overdrawSpectrumType select element position
* The vertical slider shifts the PSD charts dBm range
* Improved draw simple spectrum code
* Limit fft input count for simple spectrum chart to get normal charts plot quality
* Using power at 2 fft inputsize to compute PSD ws throttle and RPM
* Resolved issues of using power at 2 values
* Resolved issue wrong PSD values matrix size
* Impoved PSD heat map charts vertical slider control: the avaiable dBm range shift value are -30, -20, -10, 0, 10, 20 dBm
* Code style improvement
* Code refactoring
* Added separated own vertical slider for PSD ranges shift
* Added vertical slider to control drawing PSD low level
* Code refactoring
* Added text label for the PSD vertical sliders
* Code refactoring
* replaced PSD dBm values labels
* Replaced dBm range shift slider at PSD heat map charts
* Code refactoring: use two different function to compute frequency by RPM and PSD by RPM
* Resolved Missing trailing comma issue
* Resolved missing trailing coma issue
* Added full dBm range min and max values control by using spin number input fields
* Resolved missing trailing coma issues
* The number input fields spin buttons are visible now
* Added Ctrl key for double mouse click to set PSD range values as default
* Improved PSD range values validation logic
* Code style improvement
* Improved console errors output
* Made closer PSD control placement
* Code style improvement
* Resolved undue rectangle issue at the spectrum chart
* The PSD caption is changed
Co-authored-by: Mark Haslinghuis <[email protected]>
* The extra line is removed
Co-authored-by: Mark Haslinghuis <[email protected]>
* The extra line is removed in src/graph_spectrum_calc.js
Co-authored-by: Mark Haslinghuis <[email protected]>
---------
Co-authored-by: Mark Haslinghuis <[email protected]>1 parent 318cc75 commit 800da33
File tree
5 files changed
+842
-138
lines changed- src
- css
5 files changed
+842
-138
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
461 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
462 | 465 | | |
463 | 466 | | |
464 | 467 | | |
| |||
490 | 493 | | |
491 | 494 | | |
492 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
493 | 512 | | |
494 | 513 | | |
495 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
546 | 552 | | |
547 | 553 | | |
548 | 554 | | |
| |||
616 | 622 | | |
617 | 623 | | |
618 | 624 | | |
619 | | - | |
| 625 | + | |
620 | 626 | | |
621 | 627 | | |
622 | 628 | | |
| |||
670 | 676 | | |
671 | 677 | | |
672 | 678 | | |
| 679 | + | |
673 | 680 | | |
674 | 681 | | |
675 | 682 | | |
| |||
678 | 685 | | |
679 | 686 | | |
680 | 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 | + | |
681 | 747 | | |
682 | 748 | | |
683 | 749 | | |
| |||
686 | 752 | | |
687 | 753 | | |
688 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
689 | 763 | | |
690 | 764 | | |
691 | 765 | | |
| |||
0 commit comments