mirror of https://github.com/EspoTek/Labrador.git
feat : starting implementation for frequency spectrum
Signed-off-by: Vincenzo Petrolo <vincenzo@kernel-space.org>
This commit is contained in:
parent
d1d6156569
commit
2dc723dc9a
|
@ -0,0 +1,3 @@
|
|||
[submodule "Desktop_Interface/kfr"]
|
||||
path = Desktop_Interface/kfr
|
||||
url = https://github.com/kfrlib/kfr.git
|
|
@ -718,12 +718,25 @@ void isoDriver::frameActionGeneric(char CH1_mode, char CH2_mode)
|
|||
|
||||
udateCursors();
|
||||
|
||||
if(XYmode){
|
||||
/* After having gathered all infos in CH1, CH2 if spectrum is true
|
||||
* we calculate the FFT, and subsitute FFT values to CH1,CH2 vectors.
|
||||
* It is also needed to change the graph indications.
|
||||
*/
|
||||
if (spectrum) {
|
||||
if (CH2_mode) {
|
||||
/*Then size of buffer is doubled 750ks*/
|
||||
} else {
|
||||
/*Size of input buffer is 375ks*/
|
||||
}
|
||||
/*Compute FFT*/
|
||||
/*Write output to new arrays, and plot them*/
|
||||
} else if(XYmode){
|
||||
QCPCurve* curve = reinterpret_cast<QCPCurve*>(axes->plottable(0));
|
||||
curve->setData(CH1, CH2);
|
||||
axes->xAxis->setRange(xmin, xmax);
|
||||
axes->yAxis->setRange(ymin, ymax);
|
||||
}else{
|
||||
} else{
|
||||
/*@HINT here plotting graph*/
|
||||
axes->graph(0)->setData(x,CH1);
|
||||
if(CH2_mode) axes->graph(1)->setData(x,CH2);
|
||||
axes->xAxis->setRange(-display.window - display.delay, -display.delay);
|
||||
|
|
|
@ -88,6 +88,7 @@ public:
|
|||
//DAQ
|
||||
bool fileModeEnabled = false;
|
||||
double daq_maxWindowSize;
|
||||
bool spectrum = false;
|
||||
private:
|
||||
//Those bloody bools that just Enable/Disable a single property
|
||||
bool paused_CH1 = false;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 9fc73247f43b303617329294ae264613df4dce71
|
|
@ -2511,3 +2511,8 @@ void MainWindow::on_actionHide_Widget_LogicAnalyzer_triggered(bool checked)
|
|||
ui->busSnifferGroup_CH2->setVisible(!checked);
|
||||
ui->digitalOutputGroup->setVisible(!checked);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionFrequency_Spectrum_triggered(bool checked)
|
||||
{
|
||||
ui->controller_iso->spectrum = checked;
|
||||
}
|
||||
|
|
|
@ -227,6 +227,8 @@ private slots:
|
|||
|
||||
void on_actionHide_Widget_LogicAnalyzer_triggered(bool checked);
|
||||
|
||||
void on_actionFrequency_Spectrum_triggered(bool checked);
|
||||
|
||||
private:
|
||||
//Generic Vars
|
||||
Ui::MainWindow *ui;
|
||||
|
|
|
@ -11,7 +11,7 @@ unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
|
|||
export VERSION=$(git rev-parse --short HEAD)
|
||||
./linuxdeployqt-*.AppImage appdir/usr/share/applications/*.desktop -bundle-non-qt-libs -verbose=2 -unsupported-allow-new-glibc
|
||||
mkdir -p appdir/usr/optional/ ; wget -c https://github.com/darealshinji/AppImageKit-checkrt/releases/download/continuous/exec-x86_64.so -O ./appdir/usr/optional/exec.so
|
||||
mkdir -p appdir/usr/optional/libstdc++/ ; cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./appdir/usr/optional/libstdc++/
|
||||
mkdir -p appdir/usr/optional/libstdc++/ ; cp /usr/lib/libstdc++.so.6 ./appdir/usr/optional/libstdc++/
|
||||
./linuxdeployqt-*.AppImage --appimage-extract
|
||||
rm ./appdir/AppRun ; cp ./resources/AppRun appdir/ ; chmod a+x ./appdir/AppRun
|
||||
PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool -g ./appdir/
|
||||
|
|
Loading…
Reference in New Issue