mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
Fixed typo setGroundSpeed
This commit is contained in:
@@ -73,7 +73,7 @@ namespace BlackSimPlugin
|
||||
situation.setPosition(position);
|
||||
situation.setAltitude(CAltitude(dHigh + dLow, CAltitude::MeanSeaLevel, CLengthUnit::m()));
|
||||
double groundSpeed = positionVelocity.ground_velocity / 65536.0;
|
||||
situation.setGroundspeed(CSpeed(groundSpeed, CSpeedUnit::m_s()));
|
||||
situation.setGroundSpeed(CSpeed(groundSpeed, CSpeedUnit::m_s()));
|
||||
|
||||
FS_PBH pbhstrct;
|
||||
pbhstrct.pbh = positionVelocity.pbh;
|
||||
|
||||
@@ -367,7 +367,7 @@ namespace BlackSimPlugin
|
||||
situation.setBank(bank);
|
||||
situation.setHeading(heading);
|
||||
situation.setPitch(pitch);
|
||||
situation.setGroundspeed(groundspeed);
|
||||
situation.setGroundSpeed(groundspeed);
|
||||
situation.setAltitude(altitude);
|
||||
aircraft.setSituation(situation);
|
||||
|
||||
|
||||
@@ -364,7 +364,7 @@ namespace BlackSimPlugin
|
||||
aircraftSituation.setPitch(CAngle(simulatorOwnAircraft.pitch, CAngleUnit::deg()));
|
||||
aircraftSituation.setBank(CAngle(simulatorOwnAircraft.bank, CAngleUnit::deg()));
|
||||
aircraftSituation.setHeading(CHeading(simulatorOwnAircraft.trueHeading, CHeading::True, CAngleUnit::deg()));
|
||||
aircraftSituation.setGroundspeed(CSpeed(simulatorOwnAircraft.velocity, CSpeedUnit::kts()));
|
||||
aircraftSituation.setGroundSpeed(CSpeed(simulatorOwnAircraft.velocity, CSpeedUnit::kts()));
|
||||
aircraftSituation.setAltitude(CAltitude(simulatorOwnAircraft.altitude, CAltitude::MeanSeaLevel, CLengthUnit::ft()));
|
||||
|
||||
CAircraftLights lights(simulatorOwnAircraft.lightStrobe,
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace BlackSimPlugin
|
||||
situation.setHeading({ m_xplaneData.trueHeading, Aviation::CHeading::True, CAngleUnit::deg() });
|
||||
situation.setPitch({ m_xplaneData.pitch, CAngleUnit::deg() });
|
||||
situation.setBank({ m_xplaneData.roll, CAngleUnit::deg() });
|
||||
situation.setGroundspeed({ m_xplaneData.groundspeed, CSpeedUnit::m_s() });
|
||||
situation.setGroundSpeed({ m_xplaneData.groundspeed, CSpeedUnit::m_s() });
|
||||
|
||||
// updates
|
||||
updateOwnIcaoCodes(m_xplaneData.aircraftIcaoCode, CAirlineIcaoCode());
|
||||
|
||||
Reference in New Issue
Block a user