Skip to content

Commit

Permalink
Merge pull request #74 from quartiq/rs/issue-59/power-measurements
Browse files Browse the repository at this point in the history
Fixing slope for input/reflected power measurements
  • Loading branch information
ryan-summers authored Oct 2, 2020
2 parents 9d5020a + 9634b5e commit c8b045b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rf_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,12 @@ impl RfChannel {

// 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,
),
reflected_power_transform: LinearTransformation::new(
1.5 / 0.035,
1.0 / 1.5 / 0.035,
-35.6 + 19.8 + 10.0,
),

Expand Down

0 comments on commit c8b045b

Please sign in to comment.