diff --git a/LTAPI.h b/LTAPI.h index 48fd203..d55f39a 100644 --- a/LTAPI.h +++ b/LTAPI.h @@ -122,7 +122,7 @@ class LTAPIAircraft bool bcn : 1; ///< beacon light bool strb : 1; ///< strobe light bool nav : 1; ///< navigaton lights - bool hidden : 1; ///< aircraft _not_ visible? + unsigned hidden : 1; ///< aircraft _not_ visible? (remains an 'unsigned' for backward compatibility) bool camera : 1; ///< is LiveTraffic's camera on this aircraft? // Misc int multiIdx : 8; ///< multiplayer index if plane reported via sim/multiplayer/position dataRefs, 0 if not @@ -283,7 +283,7 @@ class LTAPIAircraft /// @param[out] y Local y coordinate /// @param[out] z Local z coordinate void getLocalCoord (double& x, double& y, double& z) const - { XPLMWorldToLocal(bulk.lat,bulk.lon,bulk.alt_ft, &x,&y,&z); } + { XPLMWorldToLocal(bulk.lat,bulk.lon,bulk.alt_ft*0.3048, &x,&y,&z); } public: /// @brief Standard object creation callback. diff --git a/docs/html/LTAPI_8h.html b/docs/html/LTAPI_8h.html index 0c263c2..d159040 100644 --- a/docs/html/LTAPI_8h.html +++ b/docs/html/LTAPI_8h.html @@ -175,11 +175,11 @@

-bool +unsigned hidden: 1 -aircraft not visible? +aircraft not visible? (remains an 'unsigned' for backward compatibility) bool diff --git a/docs/html/LTAPI_8h_source.html b/docs/html/LTAPI_8h_source.html index 16aa371..9a0004e 100644 --- a/docs/html/LTAPI_8h_source.html +++ b/docs/html/LTAPI_8h_source.html @@ -144,7 +144,7 @@
122 bool bcn : 1;
123 bool strb : 1;
124 bool nav : 1;
-
125 bool hidden : 1;
+
125 unsigned hidden : 1;
126 bool camera : 1;
127 // Misc
128 int multiIdx : 8;
@@ -311,7 +311,7 @@
265 LTFlightPhase getPhase() const { return bulk.bits.phase; }
266 std::string getPhaseStr() const;
-
267 bool isVisible() const { return !bulk.bits.hidden; }
+
267 bool isVisible() const { return !bulk.bits.hidden; }
268 // configuration
269 float getFlaps() const { return bulk.flaps; }
@@ -334,7 +334,7 @@
279 // calculated
285 void getLocalCoord (double& x, double& y, double& z) const
-
286 { XPLMWorldToLocal(bulk.lat,bulk.lon,bulk.alt_ft, &x,&y,&z); }
+
286 { XPLMWorldToLocal(bulk.lat,bulk.lon,bulk.alt_ft*0.3048, &x,&y,&z); }
287
288public:
@@ -623,6 +623,7 @@
float getFloat()
Get dataRef's float value. Silently returns 0.0f if dataRef doesn't exist.
Bulk data transfer structur for communication with LTAPI.
Definition LTAPI.h:92
LTFlightPhase phase
flight phase, see LTAircraft::FlightPhase
Definition LTAPI.h:117
+
unsigned hidden
aircraft not visible? (remains an 'unsigned' for backward compatibility)
Definition LTAPI.h:125
float alt_ft_f
deprecated: [ft] altitude
Definition LTAPI.h:99
float track
[°] track over ground
Definition LTAPI.h:101
float gear
gear position: 0.0 retracted, 1.0 fully extended
Definition LTAPI.h:110
@@ -639,7 +640,6 @@
LTAPIBulkData()
Constructor initializes some data without defaults.
Definition LTAPI.h:141
float heading
[°] heading
Definition LTAPI.h:100
bool camera
is LiveTraffic's camera on this aircraft?
Definition LTAPI.h:126
-
bool hidden
aircraft not visible?
Definition LTAPI.h:125
bool strb
strobe light
Definition LTAPI.h:123
float vsi_ft
[ft/minute] vertical speed, positive up
Definition LTAPI.h:105
double alt_ft
[ft] altitude
Definition LTAPI.h:137
diff --git a/docs/html/doxygen_crawl.html b/docs/html/doxygen_crawl.html index 4ff909c..d18e800 100644 --- a/docs/html/doxygen_crawl.html +++ b/docs/html/doxygen_crawl.html @@ -258,6 +258,7 @@ + @@ -274,7 +275,6 @@ - diff --git a/docs/html/functions.html b/docs/html/functions.html index fe11427..8160ce3 100644 --- a/docs/html/functions.html +++ b/docs/html/functions.html @@ -186,7 +186,7 @@

- h -

diff --git a/docs/html/functions_vars.html b/docs/html/functions_vars.html index 170e5ea..b1b547e 100644 --- a/docs/html/functions_vars.html +++ b/docs/html/functions_vars.html @@ -106,7 +106,7 @@

- g -