Browse Source

Merge pull request #2684 from srcejon/acars

A few small bug fixes
chirpmodem-v8.0.0
Edouard Griffiths 8 months ago committed by GitHub
parent
commit
ea19e1a0e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. BIN
      doc/img/Spectrum_Controls_All.png
  2. BIN
      doc/img/Spectrum_Controls_Minimum.png
  3. BIN
      doc/img/Spectrum_Controls_Standard.png
  4. 2
      plugins/channelrx/demodadsb/adsbdemod.cpp
  5. 4
      plugins/channelrx/demodadsb/adsbdemodgui.cpp
  6. 66
      plugins/channelrx/freqscanner/freqscannergui.ui
  7. 1
      plugins/samplesource/limesdrinput/limesdrinputthread.h
  8. 5
      sdrbase/util/socket.cpp
  9. 3
      sdrbase/util/visa.cpp
  10. 4
      sdrgui/gui/dmsspinbox.cpp
  11. 14
      sdrgui/gui/spectrum.md
  12. 17
      sdrgui/readme.md

BIN
doc/img/Spectrum_Controls_All.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
doc/img/Spectrum_Controls_Minimum.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
doc/img/Spectrum_Controls_Standard.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

2
plugins/channelrx/demodadsb/adsbdemod.cpp

@ -553,7 +553,7 @@ void ADSBDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& respons @@ -553,7 +553,7 @@ void ADSBDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& respons
for (const auto& report : m_aircraftReport)
{
SWGSDRangel::SWGADSBDemodAircraftState *aircraftState = new SWGSDRangel::SWGADSBDemodAircraftState();
//aircraftState->setIcao(new QString(report.m_icao));
aircraftState->setIcao(new QString(report.m_icao));
aircraftState->setCallsign(new QString(report.m_callsign));
aircraftState->setLatitude(report.m_latitude);
aircraftState->setLongitude(report.m_longitude);

4
plugins/channelrx/demodadsb/adsbdemodgui.cpp

@ -3046,7 +3046,7 @@ void ADSBDemodGUI::handleADSB( @@ -3046,7 +3046,7 @@ void ADSBDemodGUI::handleADSB(
aircraft->m_rxTime = dateTime;
aircraft->m_updateTime = QDateTime::currentDateTime();
QTime time = dateTime.time();
QTime time = aircraft->m_updateTime.time();
aircraft->m_timeItem->setText(QString("%1:%2:%3").arg(time.hour(), 2, 10, QLatin1Char('0')).arg(time.minute(), 2, 10, QLatin1Char('0')).arg(time.second(), 2, 10, QLatin1Char('0')));
if (df == 17)
{
@ -8397,7 +8397,7 @@ void ADSBDemodGUI::handleImportReply(QNetworkReply* reply) @@ -8397,7 +8397,7 @@ void ADSBDemodGUI::handleImportReply(QNetworkReply* reply)
}
aircraft->m_rxTime = QDateTime::fromSecsSinceEpoch(state[4].toInt());
aircraft->m_updateTime = QDateTime::currentDateTime();
QTime time = aircraft->m_rxTime.time();
QTime time = aircraft->m_updateTime.time();
aircraft->m_timeItem->setText(QString("%1:%2:%3").arg(time.hour(), 2, 10, QLatin1Char('0')).arg(time.minute(), 2, 10, QLatin1Char('0')).arg(time.second(), 2, 10, QLatin1Char('0')));
aircraft->m_adsbFrameCount++;
aircraft->m_adsbFrameCountItem->setData(Qt::DisplayRole, aircraft->m_adsbFrameCount);

66
plugins/channelrx/freqscanner/freqscannergui.ui

@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
<enum>Qt::FocusPolicy::NoFocus</enum>
</property>
<property name="windowTitle">
<string>Frequency Scanner</string>
@ -102,7 +102,7 @@ @@ -102,7 +102,7 @@
<item>
<widget class="Line" name="line_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
@ -143,7 +143,7 @@ @@ -143,7 +143,7 @@
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
<enum>Qt::FocusPolicy::NoFocus</enum>
</property>
<property name="toolTip">
<string>Minimum demod shift frequency from center in Hz</string>
@ -178,19 +178,19 @@ @@ -178,19 +178,19 @@
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
@ -209,7 +209,7 @@ @@ -209,7 +209,7 @@
<string>Active frequency power </string>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
<enum>Qt::LayoutDirection::LeftToRight</enum>
</property>
<property name="text">
<string>-120.0</string>
@ -230,7 +230,7 @@ @@ -230,7 +230,7 @@
<item>
<widget class="Line" name="line_7">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
@ -281,12 +281,12 @@ @@ -281,12 +281,12 @@
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
@ -294,7 +294,7 @@ @@ -294,7 +294,7 @@
<item>
<widget class="Line" name="line_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
@ -343,7 +343,7 @@ @@ -343,7 +343,7 @@
<item>
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
@ -392,7 +392,7 @@ @@ -392,7 +392,7 @@
<item>
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
@ -443,7 +443,7 @@ @@ -443,7 +443,7 @@
<item>
<widget class="Line" name="line_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
@ -480,7 +480,7 @@ @@ -480,7 +480,7 @@
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
<enum>Qt::FocusPolicy::NoFocus</enum>
</property>
<property name="toolTip">
<string>Channel bandwidth</string>
@ -506,7 +506,7 @@ @@ -506,7 +506,7 @@
<string>Shift</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
@ -534,7 +534,7 @@ @@ -534,7 +534,7 @@
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
<enum>Qt::FocusPolicy::NoFocus</enum>
</property>
<property name="toolTip">
<string>Frequency shift applied from scan frequency (for SSB)</string>
@ -551,12 +551,12 @@ @@ -551,12 +551,12 @@
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
@ -620,7 +620,7 @@ @@ -620,7 +620,7 @@
<item>
<widget class="Line" name="filterLine">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
@ -776,7 +776,7 @@ @@ -776,7 +776,7 @@
<item>
<widget class="Line" name="line_8">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
@ -784,6 +784,12 @@ @@ -784,6 +784,12 @@
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QTableWidget" name="table">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
</property>
<column>
<property name="text">
<string>Freq (Hz)</string>
@ -976,7 +982,7 @@ Leave blank for no adjustment</string> @@ -976,7 +982,7 @@ Leave blank for no adjustment</string>
<item>
<widget class="QToolButton" name="exportFreqs">
<property name="toolTip">
<string>Export frequencies from .csv file</string>
<string>Export frequencies to .csv file</string>
</property>
<property name="text">
<string/>
@ -990,7 +996,7 @@ Leave blank for no adjustment</string> @@ -990,7 +996,7 @@ Leave blank for no adjustment</string>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -1028,15 +1034,15 @@ Leave blank for no adjustment</string> @@ -1028,15 +1034,15 @@ Leave blank for no adjustment</string>
<header>gui/buttonswitch.h</header>
</customwidget>
<customwidget>
<class>RollupContents</class>
<class>ValueDialZ</class>
<extends>QWidget</extends>
<header>gui/rollupcontents.h</header>
<header>gui/valuedialz.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>ValueDialZ</class>
<class>RollupContents</class>
<extends>QWidget</extends>
<header>gui/valuedialz.h</header>
<header>gui/rollupcontents.h</header>
<container>1</container>
</customwidget>
</customwidgets>

1
plugins/samplesource/limesdrinput/limesdrinputthread.h

@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
#include "dsp/samplesinkfifo.h"
#include "dsp/decimators.h"
#include "dsp/replaybuffer.h"
#include "limesdr/devicelimesdrshared.h"
#include "limesdr/devicelimesdr.h"

5
sdrbase/util/socket.cpp

@ -28,6 +28,7 @@ Socket::Socket(QObject *socket, QObject *parent) : @@ -28,6 +28,7 @@ Socket::Socket(QObject *socket, QObject *parent) :
Socket::~Socket()
{
delete m_socket;
m_socket = nullptr;
}
TCPSocket::TCPSocket(QTcpSocket *socket) :
@ -95,7 +96,7 @@ bool TCPSocket::isConnected() @@ -95,7 +96,7 @@ bool TCPSocket::isConnected()
{
QTcpSocket *socket = qobject_cast<QTcpSocket *>(m_socket);
return socket->state() == QAbstractSocket::ConnectedState;
return socket && (socket->state() == QAbstractSocket::ConnectedState);
}
WebSocket::WebSocket(QWebSocket *socket) :
@ -189,5 +190,5 @@ bool WebSocket::isConnected() @@ -189,5 +190,5 @@ bool WebSocket::isConnected()
{
QWebSocket *socket = qobject_cast<QWebSocket *>(m_socket);
return socket->state() == QAbstractSocket::ConnectedState;
return socket && (socket->state() == QAbstractSocket::ConnectedState);
}

3
sdrbase/util/visa.cpp

@ -89,7 +89,8 @@ ViSession VISA::open(const QString& device) @@ -89,7 +89,8 @@ ViSession VISA::open(const QString& device)
ViSession session;
if (isAvailable())
{
if (VI_SUCCESS == viOpen(m_defaultRM, device.toLatin1().data(), VI_NULL, VI_NULL, &session))
QByteArray deviceBA = device.toLatin1();
if (VI_SUCCESS == viOpen(m_defaultRM, deviceBA.data(), VI_NULL, VI_NULL, &session))
{
qDebug() << "VISA::open: Opened VISA device: " << device;
return session;

4
sdrgui/gui/dmsspinbox.cpp

@ -90,6 +90,10 @@ QAbstractSpinBox::StepEnabled DMSSpinBox::stepEnabled() const @@ -90,6 +90,10 @@ QAbstractSpinBox::StepEnabled DMSSpinBox::stepEnabled() const
{
QAbstractSpinBox::StepEnabled enabled = QAbstractSpinBox::StepNone;
if (isReadOnly()) {
return enabled;
}
if (hasValue() && (m_value < m_maximum)) {
enabled |= QAbstractSpinBox::StepUpEnabled;
}

14
sdrgui/gui/spectrum.md

@ -455,9 +455,17 @@ Click to open the Spectrum Display Settings dialog. See below. @@ -455,9 +455,17 @@ Click to open the Spectrum Display Settings dialog. See below.
Selects which of these spectrum controls are displayed. This allows a user to hide less frequently used controls.
- **Min**: displays a minimum set of controls.
- **Std**: displays the standard set of controls.
- **All**: displays all controls.
- **Min**: displays a minimum set of controls.
![Minimum Controls](../../doc/img/Spectrum_Controls_Minimum.png)
- **Std**: displays the standard set of controls.
![Standard Controls](../../doc/img/Spectrum_Controls_Standard.png)
- **All**: displays all controls.
![All Controls](../../doc/img/Spectrum_Controls_All.png)
<h4>B.7.8: Go to annotation marker</h4>

17
sdrgui/readme.md

@ -46,10 +46,25 @@ The different component windows are: @@ -46,10 +46,25 @@ The different component windows are:
The workspaces are attached to a docking area of the main window and can be undocked to be moved to another display in a multiple screen setup for example.
The workspace has a top bar with the following controls:
The workspace has a tool bar with the following controls:
![Workspaces](../doc/img/Workspace_top.png)
Keyboard shortcuts for workspace controls are:
- Ctrl-P: Configuration Presets.
- Ctrl-S: Start/stop all devices.
- Ctrl-R: Add RX device.
- Ctrl-T: Add TX device.
- Ctrl-M: Add MIMO device.
- Ctrl-E: Add feature.
- Ctrl-Shift-P: Feature presets.
- Ctrl-Shift-C: Cascade windows.
- Ctrl-Shift-T: Tile windows.
- Ctrl-Shift-V: Stack windows vertically.
- Ctrl-Shift-S: Stack windows in columns.
- Ctrl-Shift-B: Display windows in tabs.
<h3>1.1: Workspace index</h3>
Shows the index of the workspaces in the list of workspaces as a "W" followed by the index.

Loading…
Cancel
Save