Skip to content

Commit

Permalink
Merge pull request #1261 from rcflyinghokie/LMTelecom
Browse files Browse the repository at this point in the history
Add save/loading for LM sband transceiver
  • Loading branch information
indy91 authored Jun 26, 2024
2 parents 53175c2 + 061ba99 commit 915f79d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Orbitersdk/samples/ProjectApollo/src_lm/lm_telecom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2656,14 +2656,14 @@ void LM_SBAND::Timestep(double simt){
}

void LM_SBAND::LoadState(char *line) {
sscanf(line + 12, "%i %i %lf %lf", &pa_mode_1, &pa_mode_2, &pa_timer_1, &pa_timer_2);
sscanf(line + 12, "%i %i %lf %lf %i %i %lf %lf", &pa_mode_1, &pa_mode_2, &pa_timer_1, &pa_timer_2, &tc_mode_1, &tc_mode_2, &tc_timer_1, &tc_timer_2);
}


void LM_SBAND::SaveState(FILEHANDLE scn) {
char buffer[256];

sprintf(buffer, "%i %i %lf %lf", pa_mode_1, pa_mode_2, pa_timer_1, pa_timer_2);
sprintf(buffer, "%i %i %lf %lf %i %i %lf %lf", pa_mode_1, pa_mode_2, pa_timer_1, pa_timer_2, tc_mode_1, tc_mode_2, tc_timer_1, tc_timer_2);

oapiWriteScenario_string(scn, "UNIFIEDSBAND", buffer);
}
Expand Down

0 comments on commit 915f79d

Please sign in to comment.