Ref T268, check in XPlane driver

This commit is contained in:
Klaus Basan
2018-07-11 23:41:31 +02:00
parent b98a405ed2
commit a508ad4ccb
3 changed files with 36 additions and 2 deletions

View File

@@ -40,6 +40,19 @@ namespace BlackSimPlugin
//! Is empty?
bool isEmpty() const { return callsigns.isEmpty(); }
//! Check function
bool hasSameSizes() const
{
const int s = callsigns.size();
if (s != latitudes.size()) { return false; }
if (s != longitudes.size()) { return false; }
if (s != altitudes.size()) { return false; }
if (s != pitches.size()) { return false; }
if (s != rolls.size()) { return false; }
if (s != headings.size()) { return false; }
return true;
}
QStringList callsigns; //!< List of callsigns
QList<double> latitudes; //!< List of latitudes
QList<double> longitudes; //!< List of longitudes