mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
Ref T268, check in XPlane driver
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user