mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T275, utility functions in simulated aircraft, sim object ..
This commit is contained in:
@@ -479,9 +479,11 @@ namespace BlackMisc
|
||||
m_models[NetworkModel] = model;
|
||||
}
|
||||
|
||||
void CSimulatedAircraft::setCG(const CLength &cg)
|
||||
bool CSimulatedAircraft::setCG(const CLength &cg)
|
||||
{
|
||||
m_models.setCG(cg);
|
||||
if (cg.isNull()) { return false; }
|
||||
const int c = m_models.setCG(cg);
|
||||
return c > 0;
|
||||
}
|
||||
|
||||
void CSimulatedAircraft::setModelString(const QString &modelString)
|
||||
|
||||
@@ -388,7 +388,7 @@ namespace BlackMisc
|
||||
void setNetworkModel(const CAircraftModel &model);
|
||||
|
||||
//! Set the center of gravity
|
||||
void setCG(const PhysicalQuantities::CLength &cg);
|
||||
bool setCG(const PhysicalQuantities::CLength &cg);
|
||||
|
||||
//! Set callsign
|
||||
void setCallsign(const Aviation::CCallsign &callsign);
|
||||
|
||||
Reference in New Issue
Block a user