Browse Source

MainWindow changed.

Arash Aletayeb 4 months ago
parent
commit
78a22daec7
  1. 4
      developHw.pro.user
  2. 2
      include/model/hardware/core/lowLevelApi/TrxBoardUtils/PreProcessorDef.h
  3. 18
      mainwindow.cpp
  4. 2
      mainwindow.h
  5. 11
      mainwindow.ui
  6. 4
      src/model/hardware/core/lowLevelApi/TrxBoard.cpp

4
developHw.pro.user

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.0, 2024-12-07T11:17:45. --> <!-- Written by QtCreator 4.10.0, 2024-12-14T11:36:43. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>
@ -100,7 +100,7 @@
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value>
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">true</value> <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value> <value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value>
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value> <value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value>
</valuemap> </valuemap>

2
include/model/hardware/core/lowLevelApi/TrxBoardUtils/PreProcessorDef.h

@ -2,6 +2,6 @@
#define PREPROCESSORDEF_H #define PREPROCESSORDEF_H
#define MPS_BOARD #define MPS_BOARD
#define DEVELOP_UI //#define DEVELOP_UI
#endif //PREPROCESSORDEF_H #endif //PREPROCESSORDEF_H

18
mainwindow.cpp

@ -6831,18 +6831,10 @@ void MainWindow::on_btn_spiVerify_clicked()
} }
/*************************************************************************************************/ /*************************************************************************************************/
void MainWindow::on_chk_quickChanging_clicked(bool checked) void MainWindow::on_btn_quickChanging_clicked()
{ {
if(checked) _trx.scenPlayerStop();
{ delay(1);
_trx.scenPlayerStop(); _trx.scenPlayerStart();
delay(1); delay(100);
_trx.scenPlayerStart();
delay(50);
}
else
{
_trx.scenPlayerStop();
}
} }

2
mainwindow.h

@ -588,7 +588,7 @@ private slots:
void on_chk_pm5RegEn_clicked(bool checked); void on_chk_pm5RegEn_clicked(bool checked);
void on_chk_quickChanging_clicked(bool checked); void on_btn_quickChanging_clicked();
signals: signals:
void showMessage(QString message); void showMessage(QString message);

11
mainwindow.ui

@ -7051,18 +7051,19 @@ Dynamic Contrast</string>
<string>Spi Verify</string> <string>Spi Verify</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="chk_quickChanging"> <widget class="QPushButton" name="btn_quickChanging">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>880</x> <x>870</x>
<y>20</y> <y>20</y>
<width>201</width> <width>171</width>
<height>41</height> <height>31</height>
</rect> </rect>
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<pointsize>10</pointsize> <weight>75</weight>
<bold>true</bold>
</font> </font>
</property> </property>
<property name="text"> <property name="text">

4
src/model/hardware/core/lowLevelApi/TrxBoard.cpp

@ -80,7 +80,7 @@ void TrxBoard::readData()
if(cnt == 0) if(cnt == 0)
{ {
_hwCounter = 0; _hwCounter = 0;
std::this_thread::sleep_for(std::chrono::milliseconds(3)); //std::this_thread::sleep_for(std::chrono::milliseconds(3));
continue; continue;
} }
else if(cnt != _hwCounter) else if(cnt != _hwCounter)
@ -106,7 +106,7 @@ void TrxBoard::readData()
(batch - preBatch > 1) || (batch - preBatch > 1) ||
(batch - preBatch == 1 && subBbatch != 0)) (batch - preBatch == 1 && subBbatch != 0))
{ {
//throw HardwareException(DMA_XFER_ERROR, "Batch/subBatch id error occured."); throw HardwareException(DMA_XFER_ERROR, "Batch/subBatch id error occured.");
} }
preBatch = batch; preBatch = batch;
preSubBatch = subBbatch; preSubBatch = subBbatch;

Loading…
Cancel
Save