Skip to content

Commit

Permalink
Merge pull request #1259 from rcflyinghokie/LMTelecom
Browse files Browse the repository at this point in the history
Change LM SBD AGC to be independent of the power amp
  • Loading branch information
indy91 authored Jun 26, 2024
2 parents 2516ecf + 8b07019 commit 53175c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Orbitersdk/samples/ProjectApollo/src_lm/lm_telecom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2633,16 +2633,16 @@ void LM_SBAND::Timestep(double simt){
}

// Receiver AGC Voltage
if (lem->SBandPASelSwitch.IsUp()) {
if (ant && pa_mode_1 > 2) {
if (lem->SBandXCvrSelSwitch.IsUp()) {
if (ant && tc_mode_1 > 2) {
rcvr_agc_voltage = ant->GetSignalStrength();
}
else {
rcvr_agc_voltage = 0.0;
}
}
else if (lem->SBandPASelSwitch.IsDown()){
if (ant && pa_mode_2 > 2) {
else if (lem->SBandXCvrSelSwitch.IsDown()) {
if (ant && tc_mode_2 > 2) {
rcvr_agc_voltage = ant->GetSignalStrength();
}
else {
Expand Down

0 comments on commit 53175c2

Please sign in to comment.