mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Fixed typo setGroundSpeed
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user