mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Send FP altitude without unit
https://discordapp.com/channels/539048679160676382/539846348275449887/593211815559823367 https://discordapp.com/channels/539048679160676382/539846348275449887/593063154238619649
This commit is contained in:
@@ -660,8 +660,8 @@ namespace BlackCore
|
|||||||
const QString route = flightPlan.getRoute();
|
const QString route = flightPlan.getRoute();
|
||||||
const QString remarks = QString(flightPlan.getRemarks());
|
const QString remarks = QString(flightPlan.getRemarks());
|
||||||
|
|
||||||
const QString alt = flightPlan.getCruiseAltitude().asFpVatsimAltitudeString();
|
|
||||||
//! \fixme that would be the official string, can this be used?
|
//! \fixme that would be the official string, can this be used?
|
||||||
|
const QString alt = flightPlan.getCruiseAltitude().asFpVatsimAltitudeString();
|
||||||
// const QString alt = flightPlan.getCruiseAltitude().asFpAltitudeString();
|
// const QString alt = flightPlan.getCruiseAltitude().asFpAltitudeString();
|
||||||
|
|
||||||
QString act = flightPlan.getCombinedPrefixIcaoSuffix();
|
QString act = flightPlan.getCombinedPrefixIcaoSuffix();
|
||||||
|
|||||||
@@ -373,7 +373,8 @@ namespace BlackMisc
|
|||||||
|
|
||||||
// as feed, as none of the other clients
|
// as feed, as none of the other clients
|
||||||
const CAltitude a = this->roundedToNearest100ft(false);
|
const CAltitude a = this->roundedToNearest100ft(false);
|
||||||
return a.valueRoundedWithUnit(CLengthUnit::ft(), 0);
|
// return a.valueRoundedWithUnit(CLengthUnit::ft(), 0);
|
||||||
|
return a.valueIntegerAsString(CLengthUnit::ft());
|
||||||
}
|
}
|
||||||
|
|
||||||
const QRegularExpression &CAltitude::fpAltitudeRegExp()
|
const QRegularExpression &CAltitude::fpAltitudeRegExp()
|
||||||
|
|||||||
@@ -104,11 +104,15 @@ namespace BlackMisc
|
|||||||
//! Set value in current unit
|
//! Set value in current unit
|
||||||
void setCurrentUnitValue(double value);
|
void setCurrentUnitValue(double value);
|
||||||
|
|
||||||
//! As integer value
|
//! As integer value @{
|
||||||
int valueInteger(MU unit) const;
|
int valueInteger(MU unit) const;
|
||||||
|
QString valueIntegerAsString(MU unit) const { return QString::number(this->valueInteger(unit)); }
|
||||||
|
// @}
|
||||||
|
|
||||||
//! As integer value in current unit
|
//! As integer value in current unit @{
|
||||||
int valueInteger() const;
|
int valueInteger() const;
|
||||||
|
QString valueIntegerAsString() const { return QString::number(this->valueInteger()); }
|
||||||
|
// @}
|
||||||
|
|
||||||
//! Is value an integer
|
//! Is value an integer
|
||||||
bool isInteger() const;
|
bool isInteger() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user