Skip to content

Commit

Permalink
Merge pull request #1238 from rcflyinghokie/VCLPDDebugLines
Browse files Browse the repository at this point in the history
Add Verb/Noun and R1 R2 R3 to PDI VC debug script
  • Loading branch information
indy91 authored May 26, 2024
2 parents 4ab6ef7 + 6b69008 commit 0f73c42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Orbitersdk/samples/ProjectApollo/src_lm/LEM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,9 @@ void LEM::clbkPreStep (double simt, double simdt, double mjd) {
sprintf(thrsw, "MAN");
}

sprintf(oapiDebugString(), "PROG %s | Alt: %.0lf ft | Alt Rate: %.1lf ft/s | PGNS Mode Control: %s | Throttle: %s | Fuel: %.0lf %%", dsky.GetProg(), RadarTape.GetLGCAltitude() * 3.2808399, RadarTape.GetLGCAltitudeRate() * 3.2808399, pgnssw, thrsw, DPSFuelPercentMeter.QueryValue() * 100);
sprintf(oapiDebugString(), "PROG %s | V%s N%s | R1 %s | R2 %s | R3 %s | Alt: %.0lf ft | Alt Rate: %.1lf ft/s | PGNS Mode Control: %s | Throttle: %s | Fuel: %.0lf %% |", dsky.GetProg(),
dsky.GetVerb(), dsky.GetNoun(), dsky.GetR1(), dsky.GetR2(), dsky.GetR3(), RadarTape.GetLGCAltitude() * 3.2808399, RadarTape.GetLGCAltitudeRate() * 3.2808399,
pgnssw, thrsw, DPSFuelPercentMeter.QueryValue() * 100);
if (!VcInfoActive) VcInfoActive = true;

} else {
Expand Down
5 changes: 5 additions & 0 deletions Orbitersdk/samples/ProjectApollo/src_sys/dsky.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ class DSKY : public e_object
void LoadState(FILEHANDLE scn, char *end_str);

char *GetProg() { return Prog; };
char *GetVerb() { return Verb; };
char *GetNoun() { return Noun; };
char *GetR1() { return R1; };
char *GetR2() { return R2; };
char *GetR3() { return R3; };

protected:

Expand Down

0 comments on commit 0f73c42

Please sign in to comment.