mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
committed by
Mathew Sutcliffe
parent
d15d0db431
commit
64e14b7965
@@ -63,6 +63,8 @@ namespace BlackMisc
|
||||
argument << this->m_frequencyActive;
|
||||
argument << this->m_frequencyStandby;
|
||||
argument << this->m_digits;
|
||||
argument << this->m_volumeInput;
|
||||
argument << this->m_volumeOutput;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -74,6 +76,8 @@ namespace BlackMisc
|
||||
argument >> this->m_frequencyActive;
|
||||
argument >> this->m_frequencyStandby;
|
||||
argument >> this->m_digits;
|
||||
argument >> this->m_volumeInput;
|
||||
argument >> this->m_volumeOutput;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -25,6 +25,8 @@ namespace BlackMisc
|
||||
private:
|
||||
BlackMisc::PhysicalQuantities::CFrequency m_frequencyActive; //!< active frequency
|
||||
BlackMisc::PhysicalQuantities::CFrequency m_frequencyStandby; //!< standby frequency
|
||||
qint32 m_volumeInput; //!< volume input
|
||||
qint32 m_volumeOutput; //!< volume output
|
||||
|
||||
protected:
|
||||
int m_digits; //!< digits used
|
||||
@@ -33,14 +35,8 @@ namespace BlackMisc
|
||||
/*!
|
||||
* \brief Default constructor
|
||||
*/
|
||||
CModulator() : CAvionicsBase("default") {}
|
||||
|
||||
/*!
|
||||
* \brief Copy constructor
|
||||
* \param other
|
||||
*/
|
||||
CModulator(const CModulator &other) : CAvionicsBase(other.getName()),
|
||||
m_frequencyActive(other.m_frequencyActive), m_frequencyStandby(other.m_frequencyStandby), m_digits(other.m_digits) {}
|
||||
CModulator() :
|
||||
CAvionicsBase("default"), m_volumeInput(0), m_volumeOutput(0), m_digits(2) {}
|
||||
|
||||
/*!
|
||||
* \brief Constructor
|
||||
@@ -50,7 +46,7 @@ namespace BlackMisc
|
||||
* \param digits
|
||||
*/
|
||||
CModulator(const QString &name, const BlackMisc::PhysicalQuantities::CFrequency &activeFrequency, const BlackMisc::PhysicalQuantities::CFrequency &standbyFrequency, int digits) :
|
||||
CAvionicsBase(name), m_frequencyActive(activeFrequency), m_frequencyStandby(standbyFrequency), m_digits(digits) {}
|
||||
CAvionicsBase(name), m_frequencyActive(activeFrequency), m_frequencyStandby(standbyFrequency), m_volumeInput(0), m_volumeOutput(0), m_digits(digits) {}
|
||||
|
||||
/*!
|
||||
* \brief String for converter
|
||||
@@ -281,6 +277,28 @@ namespace BlackMisc
|
||||
this->m_frequencyStandby = frequency;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Output volume
|
||||
* \return
|
||||
*/
|
||||
qint32 getVolumeOutput() const { return this->m_volumeOutput; }
|
||||
|
||||
/*!
|
||||
* \brief Input volume
|
||||
* \return
|
||||
*/
|
||||
qint32 getVolumeInput() const { return this->m_volumeInput; }
|
||||
|
||||
/*!
|
||||
* \brief Output volume
|
||||
*/
|
||||
void setVolumeOutput(qint32 volume) { this->m_volumeOutput = volume; }
|
||||
|
||||
/*!
|
||||
* \brief Input volume
|
||||
*/
|
||||
void setVolumeInput(qint32 volume) { this->m_volumeInput = volume; }
|
||||
|
||||
/*!
|
||||
* \brief Register metadata
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user