Skip to content

Commit

Permalink
temporary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecologne committed Mar 30, 2023
1 parent f9309a7 commit 824dffc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion fbw-a32nx/src/wasm/fbw_a320/src/FlyByWireInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@ bool FlyByWireInterface::updateFcu(double sampleTime) {

fcu.update(sampleTime, simData.simulationTime, failuresConsumer.isActive(Failures::Fcu1), failuresConsumer.isActive(Failures::Fcu2),
idElecDcEssBusPowered->get(), idElecDcBus2Powered->get());
fcuBusOutputs = fcu.getBusOutputs();
fcuBusOutputs = {}; // fcu.getBusOutputs();

FcuFrontPanelOutputs frontPanelOutputs = fcu.getFrontPanelOutputs();

Expand Down
10 changes: 5 additions & 5 deletions fbw-a32nx/src/wasm/fbw_a320/src/fcu/Fcu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ void Fcu::update(double deltaTime,
bool fcu1IsPowered,
bool fcu2IsPowered) {}

base_fcu_bus Fcu::getBusOutputs() {
base_fcu_bus output = {};

return output;
}
// base_fcu_bus Fcu::getBusOutputs() {
// base_fcu_bus output = {};
//
// return output;
// }

FcuFrontPanelOutputs Fcu::getFrontPanelOutputs() {
FcuFrontPanelOutputs output = {};
Expand Down
3 changes: 1 addition & 2 deletions fbw-a32nx/src/wasm/fbw_a320/src/fcu/Fcu.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "../model/FmgcComputer_types.h"
#include "FcuIO.h"

class Fcu {
Expand All @@ -9,7 +8,7 @@ class Fcu {

void update(double deltaTime, double simulationTime, bool fcu1FaultActive, bool fcu2FaultActive, bool fcu1IsPowered, bool fcu2IsPowered);

base_fcu_bus getBusOutputs();
// base_fcu_bus getBusOutputs();

FcuFrontPanelOutputs getFrontPanelOutputs();

Expand Down
8 changes: 4 additions & 4 deletions fbw-a32nx/src/wasm/fbw_a320/src/fcu/FcuIO.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../model/FmgcComputer_types.h"
// #include "../model/FmgcComputer_types.h"

struct FcuDiscreteInputs {
bool ap1Engaged;
Expand All @@ -15,9 +15,9 @@ struct FcuDiscreteInputs {
};

struct FcuBusInputs {
base_fmgc_a_bus fmgc1BusInputs;

base_fmgc_a_bus fmgc2BusInputs;
// base_fmgc_a_bus fmgc1BusInputs;
//
// base_fmgc_a_bus fmgc2BusInputs;
};

enum class EfisModeSelection { ROSE_ILS, ROSE_VOR, ROSE_NAV, ARC, PLAN };
Expand Down

0 comments on commit 824dffc

Please sign in to comment.