Fixed typo setGroundSpeed

This commit is contained in:
Klaus Basan
2016-05-05 12:25:00 +02:00
parent 1a62de8dc3
commit 96189f530b
9 changed files with 18 additions and 18 deletions

View File

@@ -965,7 +965,7 @@ namespace BlackCore
auto history = this->m_situationsByCallsign[callsign];
if (history.empty()) { return; } // we need one full situation
interimSituation.setCurrentUtcTime();
interimSituation.setGroundspeed(history.latestObject().getGroundSpeed());
interimSituation.setGroundSpeed(history.latestObject().getGroundSpeed());
}
// store situation history

View File

@@ -161,7 +161,7 @@ namespace BlackCore
bank *= -1.0;
currentSituation.setBank(bank);
currentSituation.setGroundspeed((newSituation.getGroundSpeed() - oldSituation.getGroundSpeed())
currentSituation.setGroundSpeed((newSituation.getGroundSpeed() - oldSituation.getGroundSpeed())
* simulationTimeFraction
+ oldSituation.getGroundSpeed());
status.changedPosition = true;

View File

@@ -265,7 +265,7 @@ namespace BlackCore
// Pilot section
const double groundspeed = clientPartsMap["groundspeed"].toDouble();
CAircraftSituation situation(position, altitude);
situation.setGroundspeed(CSpeed(groundspeed, CSpeedUnit::kts()));
situation.setGroundSpeed(CSpeed(groundspeed, CSpeedUnit::kts()));
CSimulatedAircraft currentAircraft(user.getCallsign().getStringAsSet(), user, situation);
QString aircraftIcaoCode = clientPartsMap["planned_aircraft"];