mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Formatting
This commit is contained in:
@@ -50,7 +50,7 @@ namespace BlackMisc
|
||||
{
|
||||
if (coordinate.isNull()) { return false; }
|
||||
if (radius.isNull()) { return false; }
|
||||
if (isNull()) { return false; }
|
||||
if (this->isNull()) { return false; }
|
||||
const CLength d = this->calculateGreatCircleDistance(coordinate);
|
||||
const bool inRange = (radius >= d);
|
||||
return inRange;
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
#ifndef BLACKSIMPLUGIN_XSWIFTBUS_SERVICE_PROXY_H
|
||||
#define BLACKSIMPLUGIN_XSWIFTBUS_SERVICE_PROXY_H
|
||||
|
||||
|
||||
|
||||
#include "blackmisc/genericdbusinterface.h"
|
||||
|
||||
#include <QDBusError>
|
||||
@@ -36,7 +34,6 @@ namespace BlackSimPlugin
|
||||
{
|
||||
namespace XPlane
|
||||
{
|
||||
|
||||
/*!
|
||||
* Proxy object connected to a real XSwiftBus::CService object via DBus
|
||||
*/
|
||||
|
||||
@@ -243,9 +243,10 @@ namespace XSwiftBus
|
||||
{
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::Geo;
|
||||
CAircraftSituation situation(
|
||||
callsign,
|
||||
BlackMisc::Geo::CCoordinateGeodetic(latitude, longitude, altitude),
|
||||
CCoordinateGeodetic(latitude, longitude, altitude),
|
||||
CHeading(heading, CHeading::True, CAngleUnit::deg()),
|
||||
CAngle(pitch, CAngleUnit::deg()),
|
||||
CAngle(roll, CAngleUnit::deg()),
|
||||
|
||||
Reference in New Issue
Block a user