-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(engine): rework engine model and payload
- Loading branch information
Showing
51 changed files
with
18,239 additions
and
5,838 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
975 changes: 0 additions & 975 deletions
975
hdw-a339x-acj/src/systems/instruments/src/EFB/Ground/Pages/Payload/Payload.tsx
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
331 changes: 175 additions & 156 deletions
331
...j/src/wasm/fadec_a320/src/EngineControl.h → ...j/src/wasm/fadec_a330/src/EngineControl.h
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include "FadecGauge.h" | ||
|
||
FadecGauge FADEC_GAUGE; | ||
|
||
__attribute__((export_name("FadecGauge_gauge_callback"))) extern "C" bool FadecGauge_gauge_callback(FsContext ctx, | ||
int service_id, | ||
void* pData) { | ||
switch (service_id) { | ||
case PANEL_SERVICE_PRE_INSTALL: { | ||
return true; | ||
} break; | ||
case PANEL_SERVICE_POST_INSTALL: { | ||
return FADEC_GAUGE.initializeFADEC(); | ||
} break; | ||
case PANEL_SERVICE_PRE_DRAW: { | ||
/* Start updating the engines only if all needed data was fetched */ | ||
/* Due to the data fetching feature from the sim being available at this stage only (from what I have observed) */ | ||
/* Event SIMCONNECT_RECV_ID_OPEN received after the first PANEL_SERVICE_POST_INSTALL */ | ||
if (FADEC_GAUGE.isReady()) { | ||
sGaugeDrawData* drawData = static_cast<sGaugeDrawData*>(pData); | ||
return FADEC_GAUGE.onUpdate(drawData->dt); | ||
} else { | ||
return FADEC_GAUGE.fetchNeededData(); | ||
} | ||
} break; | ||
case PANEL_SERVICE_PRE_KILL: { | ||
FADEC_GAUGE.killFADEC(); | ||
return true; | ||
} break; | ||
} | ||
return false; | ||
} |
Oops, something went wrong.