Skip to content

Commit

Permalink
Merge pull request #1112 from indy91/AEAFix
Browse files Browse the repository at this point in the history
Implement AEA bootup sequence by setting initial values when AEA is unpowered
  • Loading branch information
ThymoNL authored Nov 20, 2023
2 parents f9c22e4 + fc67c37 commit 8ec088b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Orbitersdk/samples/ProjectApollo/src_lm/lm_ags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,12 @@ void LEM_AEA::Timestep(double simt, double simdt) {
{
// Reset last cycling time
LastCycled = 0;
// Reset program counter to 6000 for power up
vags.ProgramCounter = 06000;
// Also reset overflow
vags.Overflow = 0;
// And inhibit engine on
OutputPorts[IO_ODISCRETES] |= 02000;
return;
}

Expand Down

0 comments on commit 8ec088b

Please sign in to comment.