mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
[AFV] Using the aliased frequencies can be enabled/disabled
* flag * "dot command" * register audio "dot commands" for audio
This commit is contained in:
committed by
Mat Sutcliffe
parent
84cfec81e7
commit
efee7968dc
@@ -1030,6 +1030,9 @@ namespace BlackCore
|
||||
// void rounding issues from float/double
|
||||
quint32 roundedFrequencyHz = static_cast<quint32>(qRound(frequencyHz / 1000.0)) * 1000;
|
||||
|
||||
// disabled?
|
||||
if (!m_enableAliased) { return roundedFrequencyHz; }
|
||||
|
||||
// change to aliased frequency if needed
|
||||
{
|
||||
QMutexLocker lock(&m_mutex);
|
||||
|
||||
@@ -164,6 +164,13 @@ namespace BlackCore
|
||||
QSet<quint16> getEnabledTransceivers() const;
|
||||
//! @}
|
||||
|
||||
//! Aliased stations enabled?
|
||||
//! \threadsafe
|
||||
//! @{
|
||||
bool isAliasedStationsEnabled() const { return m_enableAliased; }
|
||||
void enableAliasedStations(bool enabled) { m_enableAliased = enabled; }
|
||||
//! @}
|
||||
|
||||
//! Update frequency
|
||||
//! \threadsafe
|
||||
//! @{
|
||||
@@ -345,10 +352,11 @@ namespace BlackCore
|
||||
static const QVector<quint16> &allTransceiverIds() { static const QVector<quint16> transceiverIds{0, 1}; return transceiverIds; }
|
||||
|
||||
std::atomic_int m_connectMismatches { 0 };
|
||||
std::atomic_bool m_isStarted { false };
|
||||
std::atomic_bool m_loopbackOn { false };
|
||||
std::atomic_bool m_winCoInitialized { false }; //!< Windows only CoInitializeEx
|
||||
std::atomic_bool m_integratedComUnit { false }; //!< is COM unit sychronized, integrated
|
||||
std::atomic_bool m_isStarted { false };
|
||||
std::atomic_bool m_loopbackOn { false };
|
||||
std::atomic_bool m_enableAliased { true };
|
||||
std::atomic_bool m_winCoInitialized { false }; //!< Windows only CoInitializeEx
|
||||
std::atomic_bool m_integratedComUnit { false }; //!< is COM unit sychronized, integrated?
|
||||
|
||||
QDateTime m_startDateTimeUtc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user