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