mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
fix: clang format
This commit is contained in:
@@ -494,7 +494,8 @@ namespace swift::misc::simulation
|
|||||||
do {
|
do {
|
||||||
// set some reasonable values
|
// set some reasonable values
|
||||||
const bool isOnGround = situation.isOnGround();
|
const bool isOnGround = situation.isOnGround();
|
||||||
engines.initEngines(engineCount, !isOnGround || situation.isMoving(), (!isOnGround || situation.isMoving()) ? 100 : 0);
|
engines.initEngines(engineCount, !isOnGround || situation.isMoving(),
|
||||||
|
(!isOnGround || situation.isMoving()) ? 100 : 0);
|
||||||
parts.setGearDown(isOnGround);
|
parts.setGearDown(isOnGround);
|
||||||
parts.setSpoilersOut(false);
|
parts.setSpoilersOut(false);
|
||||||
parts.setEngines(engines);
|
parts.setEngines(engines);
|
||||||
@@ -530,7 +531,7 @@ namespace swift::misc::simulation
|
|||||||
if (details) { *details = QStringLiteral("no ground info"); }
|
if (details) { *details = QStringLiteral("no ground info"); }
|
||||||
|
|
||||||
// no idea if on ground or not
|
// no idea if on ground or not
|
||||||
engines.initEngines(engineCount, true , 100);
|
engines.initEngines(engineCount, true, 100);
|
||||||
parts.setEngines(engines);
|
parts.setEngines(engines);
|
||||||
parts.setGearDown(true);
|
parts.setGearDown(true);
|
||||||
parts.setSpoilersOut(false);
|
parts.setSpoilersOut(false);
|
||||||
|
|||||||
@@ -280,8 +280,7 @@ namespace swift::simplugin::flightgear
|
|||||||
{
|
{
|
||||||
// Engine number start counting at 1
|
// Engine number start counting at 1
|
||||||
// We consider the engine running when N1 is bigger than 5 %
|
// We consider the engine running when N1 is bigger than 5 %
|
||||||
CAircraftEngine engine { engineNumber + 1,
|
CAircraftEngine engine { engineNumber + 1, m_flightgearData.enginesN1Percentage.at(engineNumber) > 5.0,
|
||||||
m_flightgearData.enginesN1Percentage.at(engineNumber) > 5.0,
|
|
||||||
static_cast<int>(m_flightgearData.enginesN1Percentage.at(engineNumber)) };
|
static_cast<int>(m_flightgearData.enginesN1Percentage.at(engineNumber)) };
|
||||||
engines.push_back(engine);
|
engines.push_back(engine);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user