mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Initialze onGround for VatPilotPosition and VatPilotInterimPosition
This caused some issues in the calculation of the PBH integer and consequently an offset of about 30 degrees heading. ref T327
This commit is contained in:
committed by
Klaus Basan
parent
d411aa471f
commit
00abf48047
@@ -214,6 +214,7 @@ namespace BlackCore
|
||||
pos.heading = myAircraft.getHeading().value(CAngleUnit::deg());
|
||||
pos.pitch = myAircraft.getPitch().value(CAngleUnit::deg());
|
||||
pos.bank = myAircraft.getBank().value(CAngleUnit::deg());
|
||||
pos.onGround = myAircraft.getParts().isOnGround();
|
||||
pos.latitude = myAircraft.latitude().value(CAngleUnit::deg());
|
||||
pos.longitude = myAircraft.longitude().value(CAngleUnit::deg());
|
||||
pos.groundSpeed = myAircraft.getGroundSpeed().valueInteger(CSpeedUnit::kts());
|
||||
@@ -244,6 +245,7 @@ namespace BlackCore
|
||||
pos.heading = myAircraft.getHeading().value(CAngleUnit::deg());
|
||||
pos.pitch = myAircraft.getPitch().value(CAngleUnit::deg());
|
||||
pos.bank = myAircraft.getBank().value(CAngleUnit::deg());
|
||||
pos.onGround = myAircraft.getParts().isOnGround();
|
||||
pos.latitude = myAircraft.latitude().value(CAngleUnit::deg());
|
||||
pos.longitude = myAircraft.longitude().value(CAngleUnit::deg());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user