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:
Roland Winklmeier
2018-09-04 09:09:59 +02:00
committed by Klaus Basan
parent d411aa471f
commit 00abf48047

View File

@@ -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());