Y_AGL->Elevation Fix
This commit is contained in:
committed by
Jason Watkins
parent
94db707414
commit
7f9be34d45
@@ -114,6 +114,7 @@ namespace XPC
|
|||||||
{ DREF::Latitude, XPLMFindDataRef("sim/flightmodel/position/latitude") },
|
{ DREF::Latitude, XPLMFindDataRef("sim/flightmodel/position/latitude") },
|
||||||
{ DREF::Longitude, XPLMFindDataRef("sim/flightmodel/position/longitude") },
|
{ DREF::Longitude, XPLMFindDataRef("sim/flightmodel/position/longitude") },
|
||||||
{ DREF::AGL, XPLMFindDataRef("sim/flightmodel/position/y_agl") },
|
{ DREF::AGL, XPLMFindDataRef("sim/flightmodel/position/y_agl") },
|
||||||
|
{ DREF::Elevation, XPLMFindDataRef("sim/flightmodel/position/elevation") },
|
||||||
|
|
||||||
{ DREF::LocalX, XPLMFindDataRef("sim/flightmodel/position/local_x") },
|
{ DREF::LocalX, XPLMFindDataRef("sim/flightmodel/position/local_x") },
|
||||||
{ DREF::LocalY, XPLMFindDataRef("sim/flightmodel/position/local_y") },
|
{ DREF::LocalY, XPLMFindDataRef("sim/flightmodel/position/local_y") },
|
||||||
@@ -617,9 +618,10 @@ namespace XPC
|
|||||||
Set(DREF::LocalY, local[1]);
|
Set(DREF::LocalY, local[1]);
|
||||||
Set(DREF::LocalZ, local[2]);
|
Set(DREF::LocalZ, local[2]);
|
||||||
// If the sim is unpaused, this will override the above settings.
|
// If the sim is unpaused, this will override the above settings.
|
||||||
|
// TODO: Are these setable when paused? Are these necessary?
|
||||||
Set(DREF::Latitude, (double)pos[0]);
|
Set(DREF::Latitude, (double)pos[0]);
|
||||||
Set(DREF::Longitude, (double)pos[1]);
|
Set(DREF::Longitude, (double)pos[1]);
|
||||||
Set(DREF::AGL, (double)pos[2]);
|
Set(DREF::Elevation, (double)pos[2]);
|
||||||
}
|
}
|
||||||
else // Multiplayer
|
else // Multiplayer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ namespace XPC
|
|||||||
// Global Position
|
// Global Position
|
||||||
Latitude = 2000,
|
Latitude = 2000,
|
||||||
Longitude,
|
Longitude,
|
||||||
|
Elevation,
|
||||||
AGL,
|
AGL,
|
||||||
|
|
||||||
// Local Postion & Velocity
|
// Local Postion & Velocity
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ namespace XPC
|
|||||||
DREF::HeadingMag, DREF::MagneticVariation
|
DREF::HeadingMag, DREF::MagneticVariation
|
||||||
},
|
},
|
||||||
{ // Row 20: Global Position
|
{ // Row 20: Global Position
|
||||||
DREF::Latitude, DREF::Longitude, DREF::AGL
|
DREF::Latitude, DREF::Longitude, DREF::Elevation, DREF::AGL
|
||||||
},
|
},
|
||||||
{ // Row 21: Local Position, Velocity
|
{ // Row 21: Local Position, Velocity
|
||||||
DREF::LocalX, DREF::LocalY, DREF::LocalZ, DREF::LocalVX, DREF::LocalVY, DREF::LocalVZ
|
DREF::LocalX, DREF::LocalY, DREF::LocalZ, DREF::LocalVX, DREF::LocalVY, DREF::LocalVZ
|
||||||
|
|||||||
Reference in New Issue
Block a user