Detection aligns on uncorrected preamble bins. If the aligned, fractional-CFO-corrected upchirp peak retains a one-bin integer residual, adjust the next FIFO consumption by -osFactor * residual. The current Sync window has already been read; remaining net-ID windows, downchirps and payload use the adjusted grid.
In separate live runs, 25.8% of fix-off frames had a residual and 93.8% of those needed binfix recovery; with the fix enabled, 8.2% had a residual and 100% of those passed without binfix. The runs were not paired, so they support the mechanism but do not measure a success-rate improvement.
Add a pending sample adjustment to the next FIFO consumption and clear it after use or frame reset. Nothing sets a nonzero adjustment yet, so decoding behavior is unchanged.
Keep the existing fractional STO result exactly, including half-bin ties. When requested through an optional out-parameter, report the integer residual of the aligned, fractional-CFO-corrected preamble peak. Existing callers do not request the residual, so decoding behavior is unchanged.
get_spectrum_history reports what has been on a band over the last
while from the spectrum's scroll history, per bin and as a list of
signals with their duty cycles; get_waterfall_image returns the same
history as a picture, the first tool to put image content beside the
text in a result. Both switch scrolling on when it is off and say so.
list_windows shows every window with its workspace and whether it is
hidden, and set_workspace takes hidden alongside the workspace index.
capture_audio's inline copy is now mono and decimated to 16 kHz, so a
ten second capture fits under the 1 MB result limit; the file on disk
is unchanged.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Both overrode showEvent for the QTBUG-100333 redraw workaround without
calling the base class, so the window state FeatureGUI publishes on show
never ran and the windows API reported the windows hidden while they
were on screen.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The display was scaled for the gain the device had, and a change of tens of decibels left the
trace off the top or along the bottom. After the chosen gain has reached the trace the main
spectrum's reference level and range are set from it, as the GUI's autoscale button does; the
autoscale argument, default true, leaves the display alone when false, and the reply says
whether it was done. The auto tune in listen and scan does the same and says so.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The guard that removes a device set a failed listen or scan created compared only the index,
so a set another request had replaced at that index would have gone instead. The engine's UID
and the object's address are recorded at creation and checked before removal.
The Codex config writer now recognises sdrangel.url = "..." under [mcp_servers] as the server
already being defined, and refuses rather than adding a [mcp_servers.sdrangel] table a TOML
parser would reject as defined twice.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Tools: listen and scan reclaim their earlier channels before retuning the device, so a scanner
left running cannot move it in between; scan counts a range before building it; booleans are
read from JSON booleans, numbers and strings alike, so replace "false" is false and freeze 1
freezes; a MIMO device set takes receive and transmit channel types; deletion is serialised
from lookup to completion so two concurrent reclaims cannot take a third channel; tune_gain
refuses a gain or AGC key the device lacks; start_iq_recording checks the name first and cleans
up by UID; describe_settings emits a definition matched by name; remove_last_deviceset reports
a timeout; a device set a failed listen or scan created is removed again.
Capture: a name resolving to the capture directory itself is refused, a drive root works, and
files are listed by prefix rather than wildcard. The audio clock starts before the wait for the
sample rate. Subscriptions are capped per session, device set URIs checked, and absent device
sets skipped by the poll. The Codex writer drops dotted managed keys and refuses a spelling it
cannot rewrite rather than adding a duplicate table.
Bridge: one session at a time when SDRangel comes back, the stream socket is shut down rather
than closed from the other thread, SIGPIPE cannot end the process, and a failed notification
gets no reply.
Also: tool calls and audio captures give up when the server stops, so stopping the feature
cannot deadlock on a call waiting for the main thread; channels are held by UID throughout;
socket timeouts in the bridge; ResourceNotFound for a resources/read of a URI that is not there.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
resolve compiler warning:
warning[-Wunused-but-set-variable=]: variable ‘dOfs’ set but not used
by removing it.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Remove unused loop counters from the SoapySDR input and output GUI loops.
The counters were incremented but never used, triggering
-Wunused-but-set-variable compiler warnings.
The loops are already controlled by their iterators, so removing the counters
does not change behavior.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Check the return value from avformat_write_header() and stop TS generation
when writing the header fails.
Use a common cleanup path for codec and format resources on setup failures.
This resolves the -Wunused-result compiler warning while ensuring failures
do not continue into TS packet generation.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Use value-initialization for the AVPacket so all packet fields are initialized
without triggering -Wmissing-field-initializers from modern compilers.
This replaces the partial initializer while preserving the existing packet
handling behavior.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Replace the deprecated av_init_packet() API with av_packet_alloc() and free
the allocated packet through the existing cleanup path.
This gives the packet explicit ownership and ensures it is released on both
successful and error paths.
This resolves the deprecated API warning reported by the compiler.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Move m_nrziBit initialization to match its declaration order in AISModSource.
The initializer list previously initialized m_nrziBit after m_state even though
m_nrziBit is declared earlier in the class, producing a -Wreorder compiler
warning.
This removes the initializer-order warning without changing behavior.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
in 6a56c25dd0
the qDebug statement that used sumMagSq was removed, but the calculation was not.
this led to a compiler warning:
plugins/channelrx/freqscanner/freqscannersink.cpp:927:10:
warning[-Wunused-but-set-variable=]: variable ‘sumMagSq’ set but not used
resolve that, but removing the variable and it's calculation.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_packets, m_overflows, and m_timeouts to zero so the USRP input
thread starts with defined stream status counters.
The counters were previously left uninitialized, allowing stream status
reporting to use indeterminate values.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_rfChanged to zero so the SDRPlay V3 thread starts with a defined
RF change state before RF changes are processed.
The member was previously left uninitialized, allowing RF change state checks
to use an indeterminate value.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Drop the current input batch when the remote stream reports an unsupported
sample size instead of continuing with an unpopulated conversion buffer.
The existing warning identifies the invalid stream configuration, while the
early return prevents uninitialized data from being written to the
uncompressed data FIFO.
This resolves the uninitialized value finding reported by Coverity (UNINIT).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the RemoteTCP input handler members that were left undefined so
protocol, decompression, and connection state starts with defined values.
Value-initialize the zlib stream and initialize the remaining uninitialized
members according to their intended initial state.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_sampleRate to zero so LocalInput starts with a defined sample rate
before one is configured.
The member was previously left uninitialized, allowing sample rate access to
use an indeterminate value.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Value-initialize the FileRecord header before populating its fields so all
header fields, including filler, have defined values before the header is
written.
The header was previously default-initialized, leaving filler uninitialized
and allowing indeterminate data to be passed to writeHeader().
This resolves the uninitialized value finding reported by Coverity (UNINIT).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the uninitialized Metis MISO UDP handler state variables so frame
tracking, buffer indexing, PTT state, hardware status, and power measurements
start with defined values.
These members were previously left uninitialized, allowing protocol and
hardware state to contain indeterminate values before being updated.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_sampleFifo to nullptr and m_fcPos to zero so the BladeRF2 output
thread starts with defined FIFO and frequency position state.
The members were previously left uninitialized, allowing output processing to
use indeterminate state before the FIFO or frequency position was configured.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_log2Decim and m_fcPos to zero so the BladeRF2 input thread starts
with defined decimation and frequency position state before either value is
configured.
The members were previously left uninitialized, allowing input processing to
use indeterminate configuration values.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_iqOrder to false in resetToDefaults() so AudioCAT SISO settings
start with a defined IQ ordering state.
The member was previously left uninitialized when the default constructor
called resetToDefaults(), allowing the IQ ordering configuration to contain an
indeterminate value.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Copy m_iqOrder in the AudioCAT SISO settings copy constructor so copied
settings retain the same IQ ordering configuration as the source object.
The member was previously left uninitialized, causing copied settings to
contain an indeterminate IQ ordering value.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_rig to nullptr and m_rxSampleRate to zero so the AudioCAT SISO CAT
worker starts with defined CAT and sample rate state.
The members were previously left uninitialized, allowing CAT and sample rate
processing to use indeterminate values.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_fcPos to zero so the AudioCAT input worker starts with a defined
frequency position before one is configured.
The member was previously left uninitialized, allowing frequency position
processing to use an indeterminate value.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_audioMagsqPeak to zero so the SimplePTT worker starts with a
defined audio peak value before any audio samples are processed.
The member was previously left uninitialized, allowing getAudioPeak() to
return an indeterminate value before the first audio peak was recorded.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_row, m_col, and m_count to zero so the channel dialog starts with
defined table and channel state.
The members were previously left uninitialized, allowing row, column, and
channel count operations to use indeterminate values.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_running to false so the remote control worker starts in a defined
stopped state.
The member was previously left uninitialized, allowing running-state checks to
use an indeterminate value.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Explicitly discard the integer returned by QString::toInt() when only
the conversion success flag is needed.
cppcheck reported the ignoredReturnValue warning.
Apply the fix to both MeshCore and Meshtastic pipeline field handling.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the map settings change flags to false and the file index to zero so
the dialog starts with defined state before any settings or downloads are
processed.
These members were previously left uninitialized, allowing change tracking
and file index operations to use indeterminate values.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_latitude and m_longitude to zero so a MapItem has defined
coordinates before its position is updated.
The members were previously left uninitialized, allowing coordinate access to
use indeterminate values.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_targetRA and m_targetDec to zero so the DFM protocol has defined
target coordinates before a target is set.
The members were previously left uninitialized, allowing target coordinates to
contain indeterminate values.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_sampleRate to zero so the demod analyzer has a defined sample
rate before one is reported or configured.
The member was previously left uninitialized, allowing sample rate checks to
use an indeterminate value.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_loggedIn to false so the APRS worker starts with a defined
logged-out state before a connection is established.
The member was previously left uninitialized, allowing login state checks to
use an indeterminate value.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_trackerDeviceSet and m_trackedDeviceSet to nullptr so the AFC
worker has defined device set state before tracking devices are initialized.
The pointers were previously left uninitialized until the corresponding
device sets were established.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_spectrumVis to nullptr so the SSB baseband has a defined
spectrum sink state before a spectrum visualizer is attached.
The pointer was previously left uninitialized until setSpectrumSink() was
called.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_levelMeter to nullptr so the SSB modulator has a defined level
meter state before a level meter is attached.
The pointer was previously left uninitialized, allowing an indeterminate
value to remain until setLevelMeter() was called.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_repeatCount from the constructor argument so the dialog state is
defined when the dialog is created.
The member was previously left uninitialized despite the constructor receiving
the value used to initialize the corresponding UI control.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize m_repeatCount from the constructor argument so the dialog state is
defined when the dialog is created.
The member was previously left uninitialized despite the constructor receiving
the value used to initialize the corresponding UI control.
This resolves the uninitialized member finding reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>
Initialize the packet TX settings dialog members from their corresponding
constructor arguments so the dialog state is defined when the dialog is
created.
These members were previously left uninitialized despite the constructor
receiving the values used to initialize the corresponding UI controls.
This resolves the uninitialized member findings reported by Coverity
(UNINIT_CTOR).
Signed-off-by: Robin Getz <rgetz503@gmail.com>