summaryrefslogtreecommitdiffhomepage
path: root/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-04 11:41:41 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-04 11:45:04 +0200
commit5897c22eca510293ab0c56dc9118cb1c5ca40b45 (patch)
treece507da4cc62eaeac7d036732ac0e47df23a59e7 /tracker-hatire/ftnoir_tracker_hat_dialog.cpp
parentbfb6fdec01dc6faf641e2ae7a5604660e6fceadd (diff)
tracker/hatire: remove disconnected logic
It's not used anywhere.
Diffstat (limited to 'tracker-hatire/ftnoir_tracker_hat_dialog.cpp')
-rwxr-xr-x[-rw-r--r--]tracker-hatire/ftnoir_tracker_hat_dialog.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/tracker-hatire/ftnoir_tracker_hat_dialog.cpp b/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
index 7d714d3a..6bec65ce 100644..100755
--- a/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
+++ b/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
@@ -15,6 +15,7 @@
TrackerControls::TrackerControls() : theTracker(NULL), settingsDirty(false), timer(this)
{
+ // TODO move to settings api -sh 20160504
ui.setupUi( this );
settings.load_ini();
@@ -27,7 +28,6 @@ TrackerControls::TrackerControls() : theTracker(NULL), settingsDirty(false), tim
ui.cbSerialPort->addItem(PortInfo.portName());
}
-
// Stop if no SerialPort dispo
if (ui.cbSerialPort->count()<1) {
QMessageBox::critical(this,"Error", "No SerialPort avaible");
@@ -117,11 +117,6 @@ TrackerControls::TrackerControls() : theTracker(NULL), settingsDirty(false), tim
ui.cb_Endian->setChecked(settings.BigEndian);
-#ifdef OPENTRACK_API
- ui.spb_Fps->setValue(settings.FPSArduino);
- connect(ui.spb_Fps, SIGNAL(valueChanged ( int )), this,SLOT(set_Fps(int)));
-#endif
-
// Connect Qt signals to member-functions
connect(ui.btnOK, SIGNAL(clicked()), this, SLOT(doOK()));
connect(ui.btnCancel, SIGNAL(clicked()), this, SLOT(doCancel()));
@@ -259,10 +254,10 @@ void TrackerControls::poll_tracker_info()
{
if (theTracker)
{
- int nb_trame;
+ int frame_cnt;
- theTracker->get_info(&nb_trame);
- ui.lab_vtps->setText(QString::number(nb_trame*(1000/last_time.elapsed())));
+ theTracker->get_info(&frame_cnt);
+ ui.lab_vtps->setText(QString::number(frame_cnt*(1000/last_time.elapsed())));
last_time.restart();
}