Skip to content

Commit

Permalink
channel: fix transform gains
Browse files Browse the repository at this point in the history
PR #74 (for #59) got lost
  • Loading branch information
jordens committed Oct 11, 2020
1 parent 619b308 commit 8f0686f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/settings/channel_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ impl BoosterChannelData {
// All of the power meters are preceded by attenuators which are incorporated in
// the offset.
output_power_transform: LinearTransformation::new(1.0 / 0.035, -35.6 + 19.8 + 10.0),
reflected_power_transform: LinearTransformation::new(1.5 / 0.035, -35.6 + 19.8 + 10.0),
reflected_power_transform: LinearTransformation::new(
1.0 / 1.5 / 0.035,
-35.6 + 19.8 + 10.0,
),

// The input power and reflected power detectors are then passed through an
// op-amp with gain 1.5x - this modifies the slope from 35mV/dB to 52.5mV/dB
input_power_transform: LinearTransformation::new(1.5 / 0.035, -35.6 + 8.9),
input_power_transform: LinearTransformation::new(1.0 / 1.5 / 0.035, -35.6 + 8.9),
}
}

Expand Down

0 comments on commit 8f0686f

Please sign in to comment.