mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 06:25:33 +08:00
PQ parsing using "best guess" strategy as default plus renamings
This commit is contained in:
committed by
Mat Sutcliffe
parent
4e1835b80d
commit
d89b217e9b
@@ -392,7 +392,7 @@ namespace BlackGui
|
||||
// TAS
|
||||
v = ui->le_CruiseTrueAirspeed->text();
|
||||
CSpeed cruiseTAS;
|
||||
cruiseTAS.parseFromString(v, CPqString::SeparatorsLocale);
|
||||
cruiseTAS.parseFromString(v, CPqString::SeparatorBestGuess);
|
||||
if (cruiseTAS.isNull())
|
||||
{
|
||||
messages.push_back(CStatusMessage(this).validationError("Wrong TAS, %1") << ui->lbl_CruiseTrueAirspeed->text());
|
||||
|
||||
@@ -358,7 +358,7 @@ namespace BlackGui
|
||||
if (situations.isEmpty()) { return; }
|
||||
|
||||
CAltitude alt;
|
||||
alt.parseFromString(elv);
|
||||
alt.parseFromString(elv, CPqString::SeparatorBestGuess);
|
||||
const CElevationPlane ep(situations.latestAdjustedObject(), alt, CElevationPlane::singlePointRadius());
|
||||
|
||||
// inject as received from simulator
|
||||
|
||||
@@ -265,7 +265,7 @@ namespace BlackGui
|
||||
{
|
||||
const QString e = ui->le_Elevation->text().trimmed();
|
||||
CAltitude a;
|
||||
a.parseFromString(e);
|
||||
a.parseFromString(e, CPqString::SeparatorBestGuess);
|
||||
ui->lblp_ElvCheck->setTicked(!e.isNull());
|
||||
CCoordinateGeodetic c = m_coordinate;
|
||||
c.setGeodeticHeight(a);
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace BlackGui
|
||||
{
|
||||
CAngle pitch;
|
||||
const QString p = ui->le_PitchOnGround->text().trimmed();
|
||||
pitch.parseFromString(p, CPqString::SeparatorsBestGuess);
|
||||
pitch.parseFromString(p, CPqString::SeparatorBestGuess);
|
||||
return pitch;
|
||||
}
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace BlackGui
|
||||
}
|
||||
|
||||
CLength cg;
|
||||
cg.parseFromString(v);
|
||||
cg.parseFromString(v, CPqString::SeparatorBestGuess);
|
||||
return cg;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user