From 81baa9506a02c6efc101adac7b35ed62a3fd5421 Mon Sep 17 00:00:00 2001 From: pip Date: Fri, 25 Feb 2011 11:40:02 +0000 Subject: [PATCH] Added 256Kbit/s RF datarate mode git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2877 ebee16cc-31ac-478f-84a7-5cbb03baadba --- .../src/plugins/pipxtreme/pipxtremegadgetwidget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/pipxtreme/pipxtremegadgetwidget.cpp b/ground/openpilotgcs/src/plugins/pipxtreme/pipxtremegadgetwidget.cpp index 312108ccb..f25952e63 100644 --- a/ground/openpilotgcs/src/plugins/pipxtreme/pipxtremegadgetwidget.cpp +++ b/ground/openpilotgcs/src/plugins/pipxtreme/pipxtremegadgetwidget.cpp @@ -132,8 +132,11 @@ PipXtremeGadgetWidget::PipXtremeGadgetWidget(QWidget *parent) : m_widget = new Ui_PipXtremeWidget(); m_widget->setupUi(this); -// qsrand(QDateTime::currentDateTime().toMSecsSinceEpoch()); // only available with Qt 4.7.1 and later +#if QT_VERSION >= 0x040700 + qsrand(QDateTime::currentDateTime().toMSecsSinceEpoch()); +#else qsrand(QDateTime::currentDateTime().toTime_t()); +#endif device_input_buffer.size = 8192; device_input_buffer.used = 0; @@ -187,6 +190,7 @@ PipXtremeGadgetWidget::PipXtremeGadgetWidget(QWidget *parent) : m_widget->comboBox_MaxRFBandwidth->addItem("64000", 64000); m_widget->comboBox_MaxRFBandwidth->addItem("128000", 128000); m_widget->comboBox_MaxRFBandwidth->addItem("192000", 192000); + m_widget->comboBox_MaxRFBandwidth->addItem("256000", 256000); m_widget->comboBox_MaxRFBandwidth->setCurrentIndex(m_widget->comboBox_MaxRFBandwidth->findText("128000")); m_widget->comboBox_MaxRFTxPower->clear();