1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 21:05:26 +03:00

kt to mph conversion taken from last commit (everything else removed, it

breaks 9x support)
This commit is contained in:
bsongis 2014-06-20 11:41:36 +02:00
parent 8fa2c21a47
commit 90381e369d

View file

@ -193,7 +193,9 @@ RawSourceRange RawSource::getRange(const ModelData & model, const GeneralSetting
result.step = singleprec ? 2 : 1;
result.max = singleprec ? (2*255) : 2000;
if (firmware->getCapability(Imperial) || settings.imperial) {
result.unit = QObject::tr("kn");
result.step *= 1.150779;
result.max *= 1.150779;
result.unit = QObject::tr("mph");
}
else {
result.step *= 1.852;