mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Minor tweaks, style
This commit is contained in:
@@ -20,12 +20,11 @@ namespace BlackMisc
|
||||
{
|
||||
namespace FsCommon
|
||||
{
|
||||
|
||||
quint32 CBcdConversions::comFrequencyToBcdHz(const BlackMisc::PhysicalQuantities::CFrequency &comFrequency)
|
||||
{
|
||||
// FSX documentation is wrong, we need to use kHz + 2 digits, not Hz
|
||||
double f = comFrequency.valueRounded(CFrequencyUnit::kHz(), 0) / 10;
|
||||
quint32 fInt = dec2Bcd(static_cast<quint32>(f));
|
||||
const double f = comFrequency.valueRounded(CFrequencyUnit::kHz(), 0) / 10;
|
||||
const quint32 fInt = dec2Bcd(static_cast<quint32>(f));
|
||||
return fInt;
|
||||
}
|
||||
|
||||
@@ -48,7 +47,6 @@ namespace BlackMisc
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
} // namespacee
|
||||
|
||||
@@ -14,18 +14,15 @@
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/pq/frequency.h"
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Aviation { class CTransponder; }
|
||||
|
||||
namespace Simulation
|
||||
{
|
||||
namespace FsCommon
|
||||
{
|
||||
|
||||
//! BCD conversions for FS
|
||||
class BLACKMISC_EXPORT CBcdConversions
|
||||
{
|
||||
@@ -49,7 +46,6 @@ namespace BlackMisc
|
||||
//! Horner scheme
|
||||
static quint32 hornerScheme(quint32 num, quint32 divider, quint32 factor);
|
||||
};
|
||||
|
||||
} // ns
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace BlackMisc
|
||||
//! Specific values
|
||||
enum ColumnIndex
|
||||
{
|
||||
IndexData = BlackMisc::CPropertyIndex::GlobalIndexCSimulatorInternals
|
||||
IndexData = CPropertyIndex::GlobalIndexCSimulatorInternals
|
||||
};
|
||||
|
||||
//! Default constructor
|
||||
@@ -81,10 +81,10 @@ namespace BlackMisc
|
||||
void setSimulatorInstallationDirectory(const QString &fullFilePath);
|
||||
|
||||
//! \copydoc BlackMisc::Mixin::Index::propertyByIndex
|
||||
CVariant propertyByIndex(const BlackMisc::CPropertyIndex &index) const;
|
||||
CVariant propertyByIndex(const CPropertyIndex &index) const;
|
||||
|
||||
//! \copydoc BlackMisc::Mixin::Index::setPropertyByIndex
|
||||
void setPropertyByIndex(const BlackMisc::CPropertyIndex &index, const CVariant &variant);
|
||||
void setPropertyByIndex(const CPropertyIndex &index, const CVariant &variant);
|
||||
|
||||
//! Register metadata
|
||||
static void registerMetadata();
|
||||
|
||||
Reference in New Issue
Block a user