Skip to content

Commit

Permalink
Merge pull request #1270 from indy91/LVDCFix
Browse files Browse the repository at this point in the history
Fix Apollo 9 LVDC predicted launch time; make interpolation of TLI da…
  • Loading branch information
indy91 authored Jul 16, 2024
2 parents 3b54522 + dcd89e2 commit 8497d92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Orbitersdk/samples/ProjectApollo/src_saturn/LVDC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9670,7 +9670,7 @@ void LVDCSV::TimeToGoToRestartAndBetaTest()
//Second opportunity targeting from TABLE

tgt_index = 0;
while (t_D > TABLE15[1].target[tgt_index].t_D)
while (tgt_index < 14 && t_D > TABLE15[1].target[tgt_index].t_D)
{
tgt_index++;
}
Expand Down Expand Up @@ -9711,7 +9711,7 @@ void LVDCSV::TimeToGoToRestartAndBetaTest()
//First opportunity targeting from TABLE

tgt_index = 0;
while (t_D > TABLE15[0].target[tgt_index].t_D)
while (tgt_index < 14 && t_D > TABLE15[0].target[tgt_index].t_D)
{
tgt_index++;
}
Expand Down
2 changes: 1 addition & 1 deletion Scenarios/Project Apollo - NASSP/Apollo 9 - Launch.scn
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ LVDC_BEGIN
LVDC_T_2 94.7
LVDC_T3PRA 49.56
LVDC_THTEO 0.0
LVDC_T_LO 0.0
LVDC_T_LO 57583.0
LVDC_TI5F3 -9257.0
LVDC_TI5F4 15240.0
LVDC_TAU3RA 419.098
Expand Down

0 comments on commit 8497d92

Please sign in to comment.