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